From 06506f12335fb8eb0235ca1e9d68248e0dcbea83 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 7 Mar 2023 19:24:28 +0100 Subject: [PATCH] move the Upgraded From Free to onCreate --- .../contacts/pro/activities/MainActivity.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt index 3e05a6fb..2170c596 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt @@ -71,6 +71,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { setupTabs() checkContactPermissions() 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() { @@ -149,11 +154,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { isFirstResume = false 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() {