Skip to content

Commit e316521

Browse files
committed
show a welcome dialog at moving from the free version
1 parent 0c53b0b commit e316521

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
android:name="android.hardware.faketouch"
1212
android:required="false" />
1313

14+
<queries>
15+
<package android:name="com.simplemobiletools.notes.debug" />
16+
<package android:name="com.simplemobiletools.notes" />
17+
</queries>
18+
1419
<application
1520
android:name=".App"
1621
android:allowBackup="true"

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ class MainActivity : SimpleActivity() {
113113

114114
checkAppOnSDCard()
115115
setupSearchButtons()
116+
117+
if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.notes")) {
118+
val dialogText = getString(R.string.upgraded_to_pro_notes)
119+
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
120+
config.wasUpgradedFromFreeShown = true
121+
}
116122
}
117123

118124
override fun onResume() {

0 commit comments

Comments
 (0)