properly detect the presence of the free app version too

This commit is contained in:
tibbi 2023-02-03 20:46:14 +01:00
parent 4497745778
commit bf662d16d9
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,11 @@
<uses-sdk tools:overrideLibrary="com.google.vr.widgets.common, com.google.vr.sdk.widgets.pano" /> <uses-sdk tools:overrideLibrary="com.google.vr.widgets.common, com.google.vr.sdk.widgets.pano" />
<queries>
<package android:name="com.simplemobiletools.gallery.debug" />
<package android:name="com.simplemobiletools.gallery" />
</queries>
<uses-feature <uses-feature
android:name="android.hardware.faketouch" android:name="android.hardware.faketouch"
android:required="false" /> android:required="false" />

View File

@ -468,7 +468,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
} }
if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.gallery")) { if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.gallery")) {
ConfirmationDialog(this, "", R.string.upgraded_from_free, R.string.ok, 0, false) {} ConfirmationDialog(this, "", R.string.upgraded_to_pro, R.string.ok, 0, false) {}
config.wasUpgradedFromFreeShown = true config.wasUpgradedFromFreeShown = true
} }