From 4daa577d39848dd658e87f19547b9f4b9baa2383 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 7 Apr 2020 01:39:16 -0400 Subject: [PATCH] Fixed #175 --- .../eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt | 1 + .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt | 2 ++ .../java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt | 2 ++ 3 files changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt index 8c099bb0a7..17ead0295e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt @@ -55,6 +55,7 @@ class ReaderColorFilterSheet(activity: ReaderActivity) : BottomSheetDialog setContentView(view) setEdgeToEdge(activity, view, 0) + window?.navigationBarColor = Color.TRANSPARENT if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && preferences.readerTheme().getOrDefault() == 0 && activity.window.decorView.rootWindowInsets.systemWindowInsetRight == 0 && diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt index 2fe1629dfc..60b8c3196f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt @@ -1,5 +1,6 @@ package eu.kanade.tachiyomi.ui.reader +import android.graphics.Color import android.os.Build import android.os.Bundle import android.view.View @@ -33,6 +34,7 @@ class ReaderPageSheet( init { setContentView(view) setEdgeToEdge(activity, view) + window?.navigationBarColor = Color.TRANSPARENT if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && Injekt.get().readerTheme().getOrDefault() == 0 && activity.window.decorView.rootWindowInsets.systemWindowInsetRight == 0 && diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index ec065b09ab..823eb47701 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.ui.reader import android.content.res.Configuration +import android.graphics.Color import android.os.Build import android.os.Bundle import android.view.View @@ -52,6 +53,7 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : activity, scroll, if (context.resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) 0 else -1 ) + window?.navigationBarColor = Color.TRANSPARENT if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && preferences.readerTheme() .getOrDefault() == 0 && activity.window.decorView.rootWindowInsets.systemWindowInsetRight == 0 && activity.window.decorView.rootWindowInsets.systemWindowInsetLeft == 0 ) window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR