added Whats new dialog
This commit is contained in:
parent
0fd3c0cc53
commit
c6f5cd6efd
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId "com.simplemobiletools.draw"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 23
|
||||
versionCode 17
|
||||
versionName "1.17"
|
||||
versionCode 18
|
||||
versionName "2.0"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
|
|
|
@ -17,6 +17,7 @@ import com.simplemobiletools.commons.dialogs.ColorPickerDialog
|
|||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
|
||||
import com.simplemobiletools.commons.models.Release
|
||||
import com.simplemobiletools.draw.BuildConfig
|
||||
import com.simplemobiletools.draw.MyCanvas
|
||||
import com.simplemobiletools.draw.R
|
||||
|
@ -70,6 +71,7 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener {
|
|||
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), OPEN_FILE_INTENT)
|
||||
}
|
||||
}
|
||||
checkWhatsNewDialog()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
@ -255,4 +257,11 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener {
|
|||
|
||||
override fun onStopTrackingTouch(seekBar: SeekBar) {}
|
||||
}
|
||||
|
||||
private fun checkWhatsNewDialog() {
|
||||
arrayListOf<Release>().apply {
|
||||
add(Release(18, R.string.release_18))
|
||||
checkWhatsNew(this, BuildConfig.VERSION_CODE)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Release notes -->
|
||||
<string name="release_18">
|
||||
Added app color theme customization\n
|
||||
Allow using images as backgrounds\n
|
||||
Added an option to save into jpgs
|
||||
</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue