From 3d994a86d7db95e6bc1eb93f8f6dcff9d115a139 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 12 Apr 2019 17:05:21 +0300 Subject: [PATCH] hook profile list expansion/collapsing on tap at runtime seems to fail on older devices otherwise --- .../java/net/ktnx/mobileledger/ui/activity/MainActivity.java | 2 ++ app/src/main/res/layout/main_navigation.xml | 4 +++- app/src/main/res/layout/nav_profile_list_head.xml | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 79f39ff7..d3a14454 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -313,6 +313,8 @@ public class MainActivity extends ProfileThemedActivity { drawer.addDrawerListener(drawerListener); } + findViewById(R.id.nav_profile_list_head_layout).setOnClickListener(this::navProfilesHeadClicked); + findViewById(R.id.nav_profiles_label).setOnClickListener(this::navProfilesHeadClicked); setupProfile(); onProfileChanged(null); diff --git a/app/src/main/res/layout/main_navigation.xml b/app/src/main/res/layout/main_navigation.xml index 225dedd4..9a1acc8b 100644 --- a/app/src/main/res/layout/main_navigation.xml +++ b/app/src/main/res/layout/main_navigation.xml @@ -138,7 +138,9 @@ android:text="@string/nav_reports_title" android:visibility="gone" /> - + + android:layout_height="@dimen/thumb_row_height">