diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java
index e816fd1c1b..bdad41b443 100644
--- a/app/src/main/java/eu/faircode/email/ActivityView.java
+++ b/app/src/main/java/eu/faircode/email/ActivityView.java
@@ -82,7 +82,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
private String startup;
private View view;
- private Group grpPane;
+
+ private View content_separator;
+ private View content_pane;
+
private DrawerLayout drawerLayout;
private ActionBarDrawerToggle drawerToggle;
private ScrollView drawerContainer;
@@ -135,7 +138,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
- grpPane = findViewById(R.id.grpPane);
+ content_separator = findViewById(R.id.content_separator);
+ content_pane = findViewById(R.id.content_pane);
drawerLayout = findViewById(R.id.drawer_layout);
drawerLayout.setScrimColor(Helper.resolveColor(this, R.attr.colorDrawerScrim));
@@ -422,6 +426,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
// Initialize
+ if (content_pane != null) {
+ content_separator.setVisibility(View.GONE);
+ content_pane.setVisibility(View.GONE);
+ }
+
if (getSupportFragmentManager().getFragments().size() == 0 &&
!getIntent().hasExtra(Intent.EXTRA_PROCESS_TEXT))
init();
@@ -608,9 +617,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
drawerLayout.closeDrawer(drawerContainer);
drawerToggle.setDrawerIndicatorEnabled(count == 1);
- if (grpPane != null) {
+ if (content_pane != null) {
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.content_pane);
- grpPane.setVisibility(fragment == null ? View.GONE : View.VISIBLE);
+ content_separator.setVisibility(fragment == null ? View.GONE : View.VISIBLE);
+ content_pane.setVisibility(fragment == null ? View.GONE : View.VISIBLE);
}
}
}
@@ -1029,11 +1039,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
fragment.setArguments(args);
int pane;
- if (grpPane == null)
+ if (content_pane == null)
pane = R.id.content_frame;
else {
pane = R.id.content_pane;
- grpPane.setVisibility(View.VISIBLE);
+ content_separator.setVisibility(View.VISIBLE);
+ content_pane.setVisibility(View.VISIBLE);
args.putBoolean("pane", true);
}
diff --git a/app/src/main/res/layout-w600dp-land/activity_view.xml b/app/src/main/res/layout-w600dp-land/activity_view.xml
index a99db4193e..9add828c05 100644
--- a/app/src/main/res/layout-w600dp-land/activity_view.xml
+++ b/app/src/main/res/layout-w600dp-land/activity_view.xml
@@ -6,44 +6,30 @@
android:layout_height="match_parent"
tools:context=".ActivityView">
-
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
+ android:layout_weight="1"
+ app:layout_constraintEnd_toStartOf="@+id/content_separator" />
+ android:background="?attr/colorSeparator" />
-
-
-
+ android:layout_weight="1" />
+