show the initial Upgrade To Pro dialog at app update

This commit is contained in:
tibbi 2018-11-04 19:21:27 +01:00
parent 0329816a4e
commit 64620dadf8
2 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.3.6'
implementation 'com.simplemobiletools:commons:5.3.8'
}
Properties props = new Properties()

View File

@ -16,6 +16,7 @@ import android.webkit.MimeTypeMap
import android.widget.SeekBar
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.dialogs.UpgradeToProDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.LICENSE_GLIDE
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
@ -76,6 +77,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
if (!isImageCaptureIntent) {
checkWhatsNewDialog()
}
if (!config.wasInitialUpgradeToProShown) {
UpgradeToProDialog(this)
config.wasInitialUpgradeToProShown = true
}
}
override fun onResume() {