updating Whats New

This commit is contained in:
tibbi 2017-11-06 20:44:26 +01:00
parent 06407722d3
commit f82c8b9452
2 changed files with 17 additions and 0 deletions

View File

@ -5,8 +5,10 @@ import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import com.simplemobiletools.commons.activities.BaseSimpleActivity
import com.simplemobiletools.commons.extensions.checkWhatsNew
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
import com.simplemobiletools.commons.models.Release
import com.simplemobiletools.thankyou.BuildConfig
import com.simplemobiletools.thankyou.R
import kotlinx.android.synthetic.main.activity_main.*
@ -16,6 +18,7 @@ class MainActivity : BaseSimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
checkWhatsNewDialog()
}
override fun onResume() {
@ -44,4 +47,11 @@ class MainActivity : BaseSimpleActivity() {
private fun launchAbout() {
startAboutActivity(R.string.app_name, LICENSE_KOTLIN, BuildConfig.VERSION_NAME)
}
private fun checkWhatsNewDialog() {
arrayListOf<Release>().apply {
add(Release(3, R.string.release_3))
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Release notes -->
<string name="release_3">Added a toggle for hiding the launcher icon</string>
</resources>