From 614c3def6ae326d382e3a65fce011a7bbbc56fa9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 1 Apr 2019 16:58:25 +0200 Subject: [PATCH] show an "Upgraded from Free" dialog at first launch of the Pro app --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index ca9e55a4f..cac452841 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -151,6 +151,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { updateWidgets() registerFileUpdateListener() + + if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.gallery")) { + ConfirmationDialog(this, "", R.string.upgraded_from_free, R.string.ok, 0) {} + config.wasUpgradedFromFreeShown = true + } } override fun onStart() {