Remember the selected fragment from the NavDrawer

and stay in it when configuration changes

Closes #370
This commit is contained in:
Torsten Grote
2016-05-04 11:25:05 -03:00
parent 6751ded313
commit 6f1360c398

View File

@@ -133,7 +133,7 @@ public class NavDrawerActivity extends BriarFragmentActivity implements
}
};
drawerLayout.setDrawerListener(drawerToggle);
startFragment(ContactListFragment.newInstance());
if (state == null) startFragment(ContactListFragment.newInstance());
checkAuthorHandle(getIntent());
initializeTransports(getLayoutInflater());