File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/kotlin/com/simplemobiletools/filemanager/pro/activities Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ android {
6464}
6565
6666dependencies {
67- implementation ' com.github.SimpleMobileTools :Simple-Commons:db25f91be3 '
67+ implementation ' com.github.esensar :Simple-Commons:26a4275f9b '
6868 implementation ' com.github.tibbi:AndroidPdfViewer:e6a533125b'
6969 implementation ' com.github.Stericson:RootTools:df729dcb13'
7070 implementation ' com.github.Stericson:RootShell:1.6'
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import kotlinx.android.synthetic.main.activity_pdf_viewer.top_shadow
2727class PDFViewerActivity : SimpleActivity () {
2828 private var realFilePath = " "
2929 private var isFullScreen = false
30+ private var passwordDialog: EnterPasswordDialog ? = null
3031
3132 override fun onCreate (savedInstanceState : Bundle ? ) {
3233 showTransparentTop = true
@@ -113,9 +114,9 @@ class PDFViewerActivity : SimpleActivity() {
113114 // already entered a password and it was wrong
114115 if (filePassword != null ) {
115116 showErrorToast(getString(R .string.invalid_password))
116- finish ()
117+ passwordDialog?.clearPassword ()
117118 } else {
118- EnterPasswordDialog (
119+ passwordDialog = EnterPasswordDialog (
119120 this ,
120121 callback = { password ->
121122 loadPdfViewer(uri, password)
@@ -130,6 +131,9 @@ class PDFViewerActivity : SimpleActivity() {
130131 finish()
131132 }
132133 }
134+ .onLoad {
135+ passwordDialog?.dismiss(notify = false )
136+ }
133137 .load()
134138
135139 showSystemUI(true )
You can’t perform that action at this time.
0 commit comments