From a31460d12204965703ecccba3566765fa144e95e Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 7 Feb 2023 14:04:38 +0100 Subject: [PATCH] show a dialog at upgrading from the free version --- .../filemanager/pro/activities/MainActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt index 99961983..78623f3d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt @@ -15,6 +15,7 @@ import android.widget.ImageView import android.widget.TextView import androidx.viewpager.widget.ViewPager import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog +import com.simplemobiletools.commons.dialogs.ConfirmationDialog import com.simplemobiletools.commons.dialogs.RadioGroupDialog import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.helpers.* @@ -97,6 +98,11 @@ class MainActivity : SimpleActivity() { } } } + + if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.filemanager")) { + ConfirmationDialog(this, "", R.string.upgraded_to_pro, R.string.ok, 0, false) {} + config.wasUpgradedFromFreeShown = true + } } override fun onResume() {