show an Upgraded From Free version dialog with some explanation when appropriate

This commit is contained in:
tibbi 2019-04-03 18:26:04 +02:00
parent 5aa921eb6c
commit 1563a4fb0e
3 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
*.aab
.gradle
/local.properties
/gradle.properties
/.idea/
.DS_Store
/build

View File

@ -57,7 +57,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.10.15'
implementation 'com.simplemobiletools:commons:5.11.0'
implementation 'joda-time:joda-time:2.10.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'

View File

@ -35,6 +35,7 @@ import com.simplemobiletools.calendar.pro.jobs.CalDAVUpdateListener
import com.simplemobiletools.calendar.pro.models.Event
import com.simplemobiletools.calendar.pro.models.EventType
import com.simplemobiletools.calendar.pro.models.ListEvent
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
@ -107,6 +108,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (savedInstanceState == null) {
checkCalDAVUpdateListener()
}
if (!config.wasUpgradedFromFreeShown && isPackageInstalled("com.simplemobiletools.calendar")) {
ConfirmationDialog(this, "", R.string.upgraded_from_free, R.string.ok, 0) {}
config.wasUpgradedFromFreeShown = true
}
}
override fun onResume() {