|
|
@ -329,9 +329,12 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
int count = getSupportFragmentManager().getBackStackEntryCount();
|
|
|
|
int count = getSupportFragmentManager().getBackStackEntryCount();
|
|
|
|
if (count == 0)
|
|
|
|
if (count == 0)
|
|
|
|
finish();
|
|
|
|
finish();
|
|
|
|
else
|
|
|
|
else {
|
|
|
|
|
|
|
|
if (drawerLayout.isDrawerOpen(drawerList))
|
|
|
|
|
|
|
|
drawerLayout.closeDrawer(drawerList);
|
|
|
|
drawerToggle.setDrawerIndicatorEnabled(count == 1);
|
|
|
|
drawerToggle.setDrawerIndicatorEnabled(count == 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
|
|