mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Fixing fragment instance restore
This commit is contained in:
@@ -52,13 +52,17 @@ public abstract class BriarFragmentActivity extends BriarActivity {
|
||||
exiting. This models the typical Google navigation behaviour such
|
||||
as in Gmail/Inbox.
|
||||
*/
|
||||
startFragment(activityComponent.newContactListFragment());
|
||||
startFragment(ContactListFragment.newInstance());
|
||||
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
|
||||
public void onFragmentCreated(String tag) {
|
||||
updateToolbarTitle(tag);
|
||||
}
|
||||
|
||||
protected void startFragment(BaseFragment fragment) {
|
||||
if (getSupportFragmentManager().getBackStackEntryCount() == 0)
|
||||
startFragment(fragment, false);
|
||||
@@ -94,6 +98,5 @@ public abstract class BriarFragmentActivity extends BriarActivity {
|
||||
trans.addToBackStack(fragment.getUniqueTag());
|
||||
}
|
||||
trans.commit();
|
||||
updateToolbarTitle(fragment.getUniqueTag());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user