瀏覽代碼

Fix encrypt / decrypt menu items display

cooperku_kdanmobile 4 年之前
父節點
當前提交
a0aa428dee
共有 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