From a94aaf41d7473cfd80b5dff6fda6cad80769086c Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 7 Mar 2023 12:32:37 +0100 Subject: [PATCH] lets always show the Upgraded From Free dialog --- app/build.gradle | 8 ++++---- .../notes/pro/activities/MainActivity.kt | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 11569997..61e4d91c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,11 +63,11 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:58574dd952' + implementation 'com.github.SimpleMobileTools:Simple-Commons:2794ea914a' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.documentfile:documentfile:1.0.1' - kapt 'androidx.room:room-compiler:2.4.3' - implementation 'androidx.room:room-runtime:2.4.3' - annotationProcessor 'androidx.room:room-compiler:2.4.3' + kapt 'androidx.room:room-compiler:2.5.0' + implementation 'androidx.room:room-runtime:2.5.0' + annotationProcessor 'androidx.room:room-compiler:2.5.0' } diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt index 1f6fd880..101a18db 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt @@ -115,10 +115,9 @@ class MainActivity : SimpleActivity() { checkAppOnSDCard() setupSearchButtons() - if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.notes")) { + if (isPackageInstalled("com.simplemobiletools.notes")) { val dialogText = getString(R.string.upgraded_to_pro_notes) ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {} - config.wasUpgradedFromFreeShown = true } }