show a dialog at upgrading from the free version

This commit is contained in:
tibbi 2023-03-11 22:37:16 +01:00
parent d84906bf9c
commit 8c6070a9dd
2 changed files with 6 additions and 1 deletions

View File

@ -63,6 +63,6 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:f80a1e1ad8'
implementation 'com.github.SimpleMobileTools:Simple-Commons:a7d47190b9'
implementation "androidx.print:print:1.0.0"
}

View File

@ -17,6 +17,7 @@ import android.widget.Toast
import androidx.print.PrintHelper
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.LICENSE_GLIDE
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
@ -129,6 +130,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
if (!isImageCaptureIntent) {
checkWhatsNewDialog()
}
if (isPackageInstalled("com.simplemobiletools.draw")) {
ConfirmationDialog(this, "", R.string.upgraded_to_pro, R.string.ok, 0, false) {}
}
}
override fun onResume() {