From 5eb44b5bcfd48f6511de34dc3b56536d9d349879 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 29 Dec 2016 22:58:28 +0100 Subject: [PATCH] leave WhatsNewDialog checking to commons library --- .../simplemobiletools/gallery/activities/MainActivity.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 867924ec2..266cbed2e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -351,11 +351,6 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { } private fun checkWhatsNewDialog() { - if (config.lastVersion == 0) { - config.lastVersion = BuildConfig.VERSION_CODE - return - } - arrayListOf().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) } } }