leave WhatsNewDialog checking to commons library

This commit is contained in:
tibbi 2016-12-29 22:58:28 +01:00
parent 4864d31069
commit 5eb44b5bcf

View file

@ -351,11 +351,6 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
}
private fun checkWhatsNewDialog() {
if (config.lastVersion == 0) {
config.lastVersion = BuildConfig.VERSION_CODE
return
}
arrayListOf<Release>().apply {
add(Release(46, R.string.release_46))
add(Release(47, R.string.release_47))
@ -364,7 +359,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
add(Release(51, R.string.release_51))
add(Release(52, R.string.release_52))
add(Release(54, R.string.release_54))
checkWhatsNew(this)
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
}