[Android] Fix version check to remove devices and add the current beta

Nicolas Pomepuy git at videolan.org
Mon May 18 13:48:43 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon May 18 10:01:53 2020 +0200| [011251505419cd18eed274720e3b63fea21a7e27] | committer: Nicolas Pomepuy

Fix version check to remove devices and add the current beta

> https://code.videolan.org/videolan/vlc-android/commit/011251505419cd18eed274720e3b63fea21a7e27
---

 application/vlc-android/src/org/videolan/vlc/StartActivity.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
index b53342d55..a16fa6bc5 100644
--- a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
@@ -143,7 +143,7 @@ class StartActivity : FragmentActivity() {
         val upgrade = firstRun || savedVersionNumber != currentVersionNumber
         val tv = showTvUi()
         if (upgrade && (tv || !firstRun)) settings.putSingle(PREF_FIRST_RUN, currentVersionNumber)
-        val removeOldDevices = savedVersionNumber == 3028200 || savedVersionNumber == 3028100
+        val removeOldDevices = savedVersionNumber in 3028201..3028399
         // Route search query
         if (Intent.ACTION_SEARCH == action || ACTION_SEARCH_GMS == action) {
             intent.setClassName(applicationContext, if (tv) TV_SEARCH_ACTIVITY else MOBILE_SEARCH_ACTIVITY)



More information about the Android mailing list