mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Restore threads in single column mode too
This commit is contained in:
parent
f3f9f51415
commit
6f2913430f
1 changed files with 5 additions and 5 deletions
|
@ -725,7 +725,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
drawerToggle.setDrawerIndicatorEnabled(savedInstanceState.getBoolean("fair:toggle"));
|
||||
|
||||
Intent thread = savedInstanceState.getParcelable("fair:thread");
|
||||
if (thread != null && content_pane != null) {
|
||||
if (thread != null) {
|
||||
getSupportFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||
onViewThread(thread);
|
||||
}
|
||||
|
@ -1342,18 +1342,18 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
drawerLayout.closeDrawer(drawerContainer);
|
||||
drawerToggle.setDrawerIndicatorEnabled(count == 1);
|
||||
|
||||
boolean thread = "thread".equals(getSupportFragmentManager().getBackStackEntryAt(count - 1).getName());
|
||||
if (!thread)
|
||||
lastThread = null;
|
||||
|
||||
if (content_pane != null) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean close_pane = prefs.getBoolean("close_pane", !Helper.isSurfaceDuo());
|
||||
boolean thread = "thread".equals(getSupportFragmentManager().getBackStackEntryAt(count - 1).getName());
|
||||
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.content_pane);
|
||||
|
||||
int visibility = (!thread || fragment == null ? (close_pane ? View.GONE : View.INVISIBLE) : View.VISIBLE);
|
||||
content_separator.setVisibility(visibility);
|
||||
content_pane.setVisibility(visibility);
|
||||
|
||||
if (!thread)
|
||||
lastThread = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue