Browse Source

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

arkon 4 năm trước cách đây
mục cha
commit
e3ed12b5d2

+ 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)
+        }
     }
 
     /**