Commit 9091dacd authored by Geoffrey Métais's avatar Geoffrey Métais

Auto load fragment only when activity is empty

parent b5674b6d
......@@ -337,8 +337,7 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
@Override
protected void onResumeFragments() {
super.onResumeFragments();
mCurrentFragmentId = mSettings.getInt("fragment_id", R.id.nav_video);
if (!currentIdIsExtension())
if (mCurrentFragment == null && !currentIdIsExtension())
showFragment(mCurrentFragmentId);
}
......
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