diff --git a/app/build.gradle b/app/build.gradle index 1889572a..7e6382db 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,7 +58,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:e56c724d04' + implementation 'com.github.SimpleMobileTools:Simple-Commons:16ae1d2c03' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.alexvasilkov:gesture-views:2.5.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt index 452ebc20..ef0d2d9e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt @@ -107,7 +107,7 @@ class ReadTextActivity : SimpleActivity() { lastSavePromptTS = System.currentTimeMillis() ConfirmationAdvancedDialog(this, "", R.string.save_before_closing, R.string.save, R.string.discard) { if (it) { - saveText(shouldExitAfterSaving = true) + saveText(true) } else { super.onBackPressed() } @@ -178,7 +178,7 @@ class ReadTextActivity : SimpleActivity() { originalText = currentText } - if (shouldExitAfterSaving) { + if (shouldExitAfterSaving) { super.onBackPressed() } } else {