lets always show the Upgraded From Free dialog

This commit is contained in:
tibbi 2023-03-07 12:32:37 +01:00
parent 4d877539e9
commit a94aaf41d7
2 changed files with 5 additions and 6 deletions

View File

@ -63,11 +63,11 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:58574dd952' implementation 'com.github.SimpleMobileTools:Simple-Commons:2794ea914a'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.documentfile:documentfile:1.0.1' implementation 'androidx.documentfile:documentfile:1.0.1'
kapt 'androidx.room:room-compiler:2.4.3' kapt 'androidx.room:room-compiler:2.5.0'
implementation 'androidx.room:room-runtime:2.4.3' implementation 'androidx.room:room-runtime:2.5.0'
annotationProcessor 'androidx.room:room-compiler:2.4.3' annotationProcessor 'androidx.room:room-compiler:2.5.0'
} }

View File

@ -115,10 +115,9 @@ class MainActivity : SimpleActivity() {
checkAppOnSDCard() checkAppOnSDCard()
setupSearchButtons() setupSearchButtons()
if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.notes")) { if (isPackageInstalled("com.simplemobiletools.notes")) {
val dialogText = getString(R.string.upgraded_to_pro_notes) val dialogText = getString(R.string.upgraded_to_pro_notes)
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {} ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
config.wasUpgradedFromFreeShown = true
} }
} }