From 23978ef4d200ad95d87ee6f36d25ff08d1916b8e Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Wed, 16 Oct 2019 19:04:37 +0200 Subject: [PATCH] Updated bottom padding for home fragment --- .../main/java/com/topjohnwu/magisk/redesign/MainActivity.kt | 3 +-- app/src/main/res/layout/fragment_home_md2.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/MainActivity.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/MainActivity.kt index 85a60f756..59a2f22b7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/MainActivity.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/MainActivity.kt @@ -23,7 +23,6 @@ import com.topjohnwu.magisk.ui.superuser.SuperuserFragment import com.topjohnwu.magisk.utils.HideTopViewOnScrollBehavior import com.topjohnwu.superuser.Shell import org.koin.androidx.viewmodel.ext.android.viewModel -import kotlin.reflect.KClass open class MainActivity : CompatActivity(), FragNavController.TransactionListener { @@ -34,7 +33,7 @@ open class MainActivity : CompatActivity( override val navigation by lazy { CompatNavigationDelegate(this, this) } - override val baseFragments: List> = listOf( + override val baseFragments = listOf( HomeFragment::class, ModulesFragment::class, SuperuserFragment::class, diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 97b148e39..8af9b586f 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -22,7 +22,7 @@ android:layout_height="match_parent" android:clipToPadding="false" android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size + (int) @dimen/l2}" - android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l1}" + android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l2}" tools:layout_marginTop="24dp">