Skip to content

Commit e69c998

Browse files
committed
show an explanation dialog to users that came from the free version
1 parent 1a23315 commit e69c998

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
android:name="android.hardware.telephony"
2323
android:required="false" />
2424

25+
<queries>
26+
<package android:name="com.simplemobiletools.contacts.debug" />
27+
<package android:name="com.simplemobiletools.contacts" />
28+
</queries>
29+
2530
<application
2631
android:name=".App"
2732
android:allowBackup="true"

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import android.widget.ImageView
1414
import android.widget.TextView
1515
import android.widget.Toast
1616
import androidx.viewpager.widget.ViewPager
17+
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
1718
import com.simplemobiletools.commons.dialogs.FilePickerDialog
1819
import com.simplemobiletools.commons.extensions.*
1920
import com.simplemobiletools.commons.helpers.*
@@ -151,6 +152,12 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
151152

152153
isFirstResume = false
153154
checkShortcuts()
155+
156+
/if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.contacts")) {
157+
val dialogText = getString(R.string.upgraded_to_pro_contacts, getString(R.string.phone_storage_hidden))
158+
ConfirmationDialog(this, dialogText, 0, R.string.ok, 0, false) {}
159+
config.wasUpgradedFromFreeShown = true
160+
}
154161
}
155162

156163
override fun onPause() {

0 commit comments

Comments
 (0)