From 1140316d1b817b35b9d1d7e125cee4892cca96e0 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 21 Nov 2020 18:11:17 -0500 Subject: [PATCH] Pad bottom of MoreController so bottom nav doesn't overlap content --- .../eu/kanade/tachiyomi/ui/more/MoreController.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt index 8573a7922..b88127cf5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt @@ -1,7 +1,12 @@ package eu.kanade.tachiyomi.ui.more import android.content.Context +import android.os.Bundle import android.util.AttributeSet +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.core.view.updatePadding import androidx.preference.Preference import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.R @@ -39,6 +44,15 @@ class MoreController : private var isDownloading: Boolean = false private var downloadQueueSize: Int = 0 + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle?): View { + val view = super.onCreateView(inflater, container, savedInstanceState) + + // Padding for bottom nav + view.updatePadding(bottom = view.context.resources.getDimensionPixelSize(R.dimen.action_toolbar_list_padding)) + + return view + } + override fun setupPreferenceScreen(screen: PreferenceScreen) = screen.apply { titleRes = R.string.label_more