From 9a49132948655a2ac9cba307dc05b5880fb83cf1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 7 May 2023 17:39:09 +0200 Subject: [PATCH] show the dialog at Media activity too --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- .../gallery/pro/activities/MediaActivity.kt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 c587b3625..0bf1a864c 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 @@ -498,7 +498,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { mWasDefaultFolderChecked = true } - if (!mWasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.gallery")) { + if (isPackageInstalled("com.simplemobiletools.gallery")) { ConfirmationDialog(this, "", R.string.upgraded_from_free_gallery, R.string.ok, 0, false) {} } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index b44388c70..fcc05d536 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -103,9 +103,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { if (mShowAll) { registerFileUpdateListener() - if (!mWasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.gallery")) { - ConfirmationDialog(this, "", R.string.upgraded_from_free, R.string.ok, 0, false) {} - mWasUpgradedFromFreeShown = true + if (isPackageInstalled("com.simplemobiletools.gallery")) { + ConfirmationDialog(this, "", R.string.upgraded_from_free_gallery, R.string.ok, 0, false) {} } }