2 次代碼提交 64d44519a9 ... 1ff1f8147d

作者 SHA1 備註 提交日期
  Wayne Huang 1ff1f8147d Merge branch '138-fixEncryptMenuItemOnAndroid29' into 'master' 4 年之前
  cooperku_kdanmobile a0aa428dee Fix encrypt / decrypt menu items display 4 年之前
共有 1 個文件被更改,包括 1 次插入1 次删除
  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