Commit 98f4d383 authored by Geoffrey Métais's avatar Geoffrey Métais

Show progressBar if browser is set after start

parent 22ed5cb4
......@@ -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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment