Browse Source

Set reader menu visibility on system UI visibility change (closes #3149 and #2068)

arkon 4 years ago
parent
commit
e3ed12b5d2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

+ 5 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

@@ -152,6 +152,11 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
 
         config = ReaderConfig()
         initializeMenu()
+
+        // Avoid status bar showing up on rotation
+        window.decorView.setOnSystemUiVisibilityChangeListener {
+            setMenuVisibility(menuVisible, animate = false)
+        }
     }
 
     /**