From 67b5f39df21b103af821bcf25e4219e06f9bb1c3 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sat, 4 Jan 2020 11:52:29 +0100 Subject: [PATCH] Updated device info view to be expanded by default --- .../com/topjohnwu/magisk/redesign/home/HomeViewModel.kt | 1 - app/src/main/res/layout/fragment_home_md2.xml | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt index 3f0093583..509c42de8 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt @@ -64,7 +64,6 @@ class HomeViewModel( val stateMagiskExpanded = KObservableField(false) val stateManagerExpanded = KObservableField(false) - val stateDeviceExpanded = KObservableField(false) val stateHideManagerName = R.string.manager.res().let { if (!statePackageOriginal) { diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 7b5608040..5c922ea50 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -98,7 +98,6 @@ android:layout_gravity="center" android:layout_marginStart="@dimen/l1" android:layout_marginEnd="@dimen/l1" - android:onClick="@{() -> viewModel.toggle(viewModel.stateDeviceExpanded)}" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -192,15 +191,12 @@ + app:layout_constraintTop_toTopOf="parent">