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: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"
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue