Browse Source

Close drawer on new fragment (folders menu)

main
M66B 6 years ago
parent
commit
da9aeaf978
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/src/main/java/eu/faircode/email/ActivityView.java

+ 4
- 1
app/src/main/java/eu/faircode/email/ActivityView.java View File

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


Loading…
Cancel
Save