mirror of
				https://github.com/SimpleMobileTools/Simple-Draw.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	show the initial Upgrade To Pro dialog at app update
This commit is contained in:
		| @@ -41,7 +41,7 @@ android { | ||||
| } | ||||
|  | ||||
| dependencies { | ||||
|     implementation 'com.simplemobiletools:commons:5.3.6' | ||||
|     implementation 'com.simplemobiletools:commons:5.3.8' | ||||
| } | ||||
|  | ||||
| Properties props = new Properties() | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user