Browse Source

Fix isHideToolbar wrong state bug

cooperku_kdanmobile 5 years ago
parent
commit
d6200bb6c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reader/src/main/java/com/kdanmobile/reader/ReaderActivity.kt

+ 1 - 1
reader/src/main/java/com/kdanmobile/reader/ReaderActivity.kt

@@ -289,7 +289,7 @@ abstract class ReaderActivity : AppCompatActivity() {
                 }
                 }
                 if (!isHideToolbar) {
                 if (!isHideToolbar) {
                     hideAllToolbars()
                     hideAllToolbars()
-                    isHideToolbar = false
+                    isHideToolbar = true
                 }
                 }
                 return super.onScroll(e1, e2, distanceX, distanceY)
                 return super.onScroll(e1, e2, distanceX, distanceY)
             }
             }