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

Refresh root browser

parent 74e68c88
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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