mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 10:00:16 +01:00
show a welcome dialog at moving from the free version
This commit is contained in:
parent
0c53b0b5fd
commit
e316521bd4
@ -11,6 +11,11 @@
|
||||
android:name="android.hardware.faketouch"
|
||||
android:required="false" />
|
||||
|
||||
<queries>
|
||||
<package android:name="com.simplemobiletools.notes.debug" />
|
||||
<package android:name="com.simplemobiletools.notes" />
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
android:allowBackup="true"
|
||||
|
@ -113,6 +113,12 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
checkAppOnSDCard()
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user