From: Damyan Ivanov Date: Fri, 12 Apr 2019 14:05:21 +0000 (+0300) Subject: hook profile list expansion/collapsing on tap at runtime X-Git-Tag: v0.9.4~5 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=3d994a86d7db95e6bc1eb93f8f6dcff9d115a139;p=mobile-ledger.git hook profile list expansion/collapsing on tap at runtime seems to fail on older devices otherwise --- 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">