added Whats new dialog

This commit is contained in:
tibbi 2017-04-09 18:42:02 +02:00
parent 0fd3c0cc53
commit c6f5cd6efd
3 changed files with 22 additions and 2 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId "com.simplemobiletools.draw"
minSdkVersion 16
targetSdkVersion 23
versionCode 17
versionName "1.17"
versionCode 18
versionName "2.0"
}
signingConfigs {

View File

@ -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)
}
}
}

View File

@ -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>