move the Upgraded From Free to onCreate

This commit is contained in:
tibbi 2023-03-07 19:24:28 +01:00
parent 89b20bc8f4
commit 06506f1233
1 changed files with 5 additions and 5 deletions

View File

@ -71,6 +71,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
setupTabs() setupTabs()
checkContactPermissions() checkContactPermissions()
checkWhatsNewDialog() checkWhatsNewDialog()
if (isPackageInstalled("com.simplemobiletools.contacts")) {
val dialogText = getString(R.string.upgraded_to_pro_contacts, getString(R.string.phone_storage_hidden))
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
}
} }
private fun checkContactPermissions() { private fun checkContactPermissions() {
@ -149,11 +154,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
isFirstResume = false isFirstResume = false
checkShortcuts() checkShortcuts()
if (isPackageInstalled("com.simplemobiletools.contacts")) {
val dialogText = getString(R.string.upgraded_to_pro_contacts, getString(R.string.phone_storage_hidden))
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
}
} }
override fun onPause() { override fun onPause() {