|
@@ -69,6 +69,8 @@ abstract class ReaderActivity :
|
|
|
abstract fun onClickFileInfo()
|
|
|
abstract fun onClickIBonPrint()
|
|
|
abstract fun onClickPrint()
|
|
|
+ abstract fun onClickEncrypt()
|
|
|
+ abstract fun onClickDecrypt()
|
|
|
abstract fun onClickUserGuide()
|
|
|
abstract fun provideReaderSettingDialogFragment(): ReaderSettingDialogFragment
|
|
|
abstract fun providePdfThumbDialogFragment(): PdfThumbDialogFragment
|
|
@@ -307,6 +309,14 @@ 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
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!isIBonPrintEnabled()) {
|
|
|
menu?.findItem(R.id.item_ibon_print)?.isVisible = false
|
|
|
}
|
|
@@ -723,6 +733,8 @@ abstract class ReaderActivity :
|
|
|
R.id.item_reader_more_file_info -> onClickFileInfo()
|
|
|
R.id.item_ibon_print -> onClickIBonPrint()
|
|
|
R.id.item_reader_more_print -> onClickPrint()
|
|
|
+ R.id.item_reader_more_encrypt -> onClickEncrypt()
|
|
|
+ R.id.item_reader_more_decrypt -> onClickDecrypt()
|
|
|
R.id.item_reader_more_user_guide -> onClickUserGuide()
|
|
|
R.id.item_reader_more_clear_signature -> onClickClearSignature()
|
|
|
}
|