updating commons + minor code style update

This commit is contained in:
tibbi 2021-08-15 23:18:28 +02:00
parent a57569cd86
commit 73aaf290f9
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ android {
} }
dependencies { 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:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2' implementation 'com.alexvasilkov:gesture-views:2.5.2'

View File

@ -107,7 +107,7 @@ class ReadTextActivity : SimpleActivity() {
lastSavePromptTS = System.currentTimeMillis() lastSavePromptTS = System.currentTimeMillis()
ConfirmationAdvancedDialog(this, "", R.string.save_before_closing, R.string.save, R.string.discard) { ConfirmationAdvancedDialog(this, "", R.string.save_before_closing, R.string.save, R.string.discard) {
if (it) { if (it) {
saveText(shouldExitAfterSaving = true) saveText(true)
} else { } else {
super.onBackPressed() super.onBackPressed()
} }
@ -178,7 +178,7 @@ class ReadTextActivity : SimpleActivity() {
originalText = currentText originalText = currentText
} }
if (shouldExitAfterSaving) { if (shouldExitAfterSaving) {
super.onBackPressed() super.onBackPressed()
} }
} else { } else {