mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Close thread on changing base view
This commit is contained in:
parent
a6a9b1f29e
commit
696016bc36
1 changed files with 3 additions and 2 deletions
|
@ -715,9 +715,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
drawerToggle.setDrawerIndicatorEnabled(count == 1);
|
||||
|
||||
if (content_pane != null) {
|
||||
boolean thread = "thread".equals(getSupportFragmentManager().getBackStackEntryAt(count - 1).getName());
|
||||
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.content_pane);
|
||||
content_separator.setVisibility(fragment == null ? View.GONE : View.VISIBLE);
|
||||
content_pane.setVisibility(fragment == null ? View.GONE : View.VISIBLE);
|
||||
content_separator.setVisibility(!thread || fragment == null ? View.GONE : View.VISIBLE);
|
||||
content_pane.setVisibility(!thread || fragment == null ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue