2 Commits 64d44519a9 ... 1ff1f8147d

Author SHA1 Message Date
  Wayne Huang 1ff1f8147d Merge branch '138-fixEncryptMenuItemOnAndroid29' into 'master' 4 years ago
  cooperku_kdanmobile a0aa428dee Fix encrypt / decrypt menu items display 4 years ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/kdanmobile/reader/ReaderActivity.kt

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

@@ -311,7 +311,7 @@ abstract class ReaderActivity :
         }
         menu?.apply {
             val isPdf = isPdf()
-            when (password.isEmpty()) {
+            when (!isPasswordProtected) {
                 true -> {
                     findItem(R.id.item_reader_more_encrypt)?.isVisible = isPdf
                     findItem(R.id.item_reader_more_decrypt)?.isVisible = false