|
@@ -318,12 +318,17 @@ abstract class ReaderActivity :
|
|
|
}
|
|
|
menuItemBookmark?.isVisible = false
|
|
|
}
|
|
|
- if (isPdf()) {
|
|
|
- menu?.apply {
|
|
|
- when (password.isEmpty()) {
|
|
|
- true -> findItem(R.id.item_reader_more_decrypt)
|
|
|
- false -> findItem(R.id.item_reader_more_encrypt)
|
|
|
- }?.isVisible = false
|
|
|
+ menu?.apply {
|
|
|
+ val isPdf = isPdf()
|
|
|
+ when (password.isEmpty()) {
|
|
|
+ true -> {
|
|
|
+ findItem(R.id.item_reader_more_encrypt)?.isVisible = isPdf
|
|
|
+ findItem(R.id.item_reader_more_decrypt)?.isVisible = false
|
|
|
+ }
|
|
|
+ false -> {
|
|
|
+ findItem(R.id.item_reader_more_encrypt)?.isVisible = false
|
|
|
+ findItem(R.id.item_reader_more_decrypt)?.isVisible = isPdf
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (!isIBonPrintEnabled()) {
|