From a5fc2072f8ee64db64ce26634dd3547e63f9dde5 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 May 2020 10:38:10 +0200 Subject: [PATCH] Fixed nav menu measuring --- app/src/main/java/eu/faircode/email/ActivityView.java | 3 ++- app/src/main/res/layout/activity_view_landscape.xml | 4 ++-- app/src/main/res/layout/activity_view_portrait.xml | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 919ba4cc5d..fc655cca45 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -51,6 +51,7 @@ import androidx.annotation.Nullable; import androidx.appcompat.app.ActionBarDrawerToggle; import androidx.appcompat.app.AlertDialog; import androidx.core.app.NotificationCompat; +import androidx.core.widget.NestedScrollView; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; @@ -93,7 +94,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB private TwoStateOwner owner = new TwoStateOwner("drawer"); private DrawerLayoutEx drawerLayout; private ActionBarDrawerToggle drawerToggle; - private ScrollView drawerContainer; + private NestedScrollView drawerContainer; private ImageButton ibExpanderAccount; private RecyclerView rvAccount; private ImageButton ibExpanderUnified; diff --git a/app/src/main/res/layout/activity_view_landscape.xml b/app/src/main/res/layout/activity_view_landscape.xml index 45d902f5fb..2770cc67f7 100644 --- a/app/src/main/res/layout/activity_view_landscape.xml +++ b/app/src/main/res/layout/activity_view_landscape.xml @@ -31,7 +31,7 @@ android:layout_weight="1" /> - - + diff --git a/app/src/main/res/layout/activity_view_portrait.xml b/app/src/main/res/layout/activity_view_portrait.xml index 703965ce74..f885f4913a 100644 --- a/app/src/main/res/layout/activity_view_portrait.xml +++ b/app/src/main/res/layout/activity_view_portrait.xml @@ -10,7 +10,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" /> - - +