Skip to content
Snippets Groups Projects
Commit 60becd94 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Show progressBar if browser is set after start

(cherry picked from commit 98f4d383)
parent 1fc8fe27
No related branches found
No related tags found
No related merge requests found
......@@ -500,9 +500,11 @@ public class MediaLibrary {
}
public void setBrowser(IBrowser browser) {
if (browser != null)
if (browser != null) {
mBrowser = new WeakReference<>(browser);
else
if (isWorking() && mBrowser.get() != null)
mBrowser.get().showProgressBar();
} else
mBrowser.clear();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment