mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Added option to collapse row/column on closing conversation
This commit is contained in:
@@ -1110,10 +1110,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
drawerToggle.setDrawerIndicatorEnabled(count == 1);
|
||||
|
||||
if (content_pane != null) {
|
||||
boolean duo = Helper.isSurfaceDuo();
|
||||
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 ? (duo ? View.INVISIBLE : View.GONE) : View.VISIBLE);
|
||||
int visibility = (!thread || fragment == null ? (close_pane ? View.GONE : View.INVISIBLE) : View.VISIBLE);
|
||||
content_separator.setVisibility(visibility);
|
||||
content_pane.setVisibility(visibility);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user