Skip to content

Commit 06506f1

Browse files
committed
move the Upgraded From Free to onCreate
1 parent 89b20bc commit 06506f1

File tree

1 file changed

+5
-5
lines changed
  • app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
7171
setupTabs()
7272
checkContactPermissions()
7373
checkWhatsNewDialog()
74+
75+
if (isPackageInstalled("com.simplemobiletools.contacts")) {
76+
val dialogText = getString(R.string.upgraded_to_pro_contacts, getString(R.string.phone_storage_hidden))
77+
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
78+
}
7479
}
7580

7681
private fun checkContactPermissions() {
@@ -149,11 +154,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
149154

150155
isFirstResume = false
151156
checkShortcuts()
152-
153-
if (isPackageInstalled("com.simplemobiletools.contacts")) {
154-
val dialogText = getString(R.string.upgraded_to_pro_contacts, getString(R.string.phone_storage_hidden))
155-
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
156-
}
157157
}
158158

159159
override fun onPause() {

0 commit comments

Comments
 (0)