show a welcome dialog at moving from the free version

This commit is contained in:
tibbi 2023-01-28 16:56:31 +01:00
parent 0c53b0b5fd
commit e316521bd4
2 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,11 @@
android:name="android.hardware.faketouch" android:name="android.hardware.faketouch"
android:required="false" /> android:required="false" />
<queries>
<package android:name="com.simplemobiletools.notes.debug" />
<package android:name="com.simplemobiletools.notes" />
</queries>
<application <application
android:name=".App" android:name=".App"
android:allowBackup="true" android:allowBackup="true"

View File

@ -113,6 +113,12 @@ class MainActivity : SimpleActivity() {
checkAppOnSDCard() checkAppOnSDCard()
setupSearchButtons() setupSearchButtons()
if (!config.wasUpgradedFromFreeShown && 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
}
} }
override fun onResume() { override fun onResume() {