Commit cfa84c96 authored by Geoffrey Métais's avatar Geoffrey Métais

Refresh root browser

parent 74e68c88
......@@ -214,9 +214,12 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
super.onHiddenChanged(hidden);
if (hidden) {
releaseBrowser();
} else if (mFabPlay != null) {
mFabPlay.setImageResource(R.drawable.ic_fab_play);
updateFab();
} else {
if (mFabPlay != null) {
mFabPlay.setImageResource(R.drawable.ic_fab_play);
updateFab();
}
if (mRoot && this instanceof NetworkBrowserFragment) refresh();
}
}
......@@ -378,7 +381,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
@Override
public void refresh() {
if (!isResumed()) return;
if (!isResumed() || isHidden()) return;
if (isSortEnabled()) {
refreshList = new ArrayList<>();
refreshing = true;
......
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