From 915df3936551de777df525c552715e61b460f74d Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 23 Feb 2020 11:53:13 -0800 Subject: [PATCH] Fixed bottom sheets on lower versions of android --- app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt | 2 -- .../main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index 87c283f7c7..c2f03cfd51 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -578,8 +578,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener { const val INTENT_SEARCH_QUERY = "query" const val INTENT_SEARCH_FILTER = "filter" - private const val URL_HELP = "https://tachiyomi.org/help/" - var usingBottomNav = true internal set } diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index 3d6162aa65..6fcd01eeb0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -255,7 +255,8 @@ inline fun View.updatePaddingRelative( fun BottomSheetDialog.setEdgeToEdge(activity: Activity, layout: View, contentView: View, setTopMargin: Boolean) { - window?.setBackgroundDrawable(null) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) + window?.setBackgroundDrawable(null) val currentNightMode = activity.resources.configuration.uiMode and Configuration .UI_MODE_NIGHT_MASK if (currentNightMode == Configuration.UI_MODE_NIGHT_NO)