[Android] Fix scan on migration

Geoffrey Métais git at videolan.org
Tue Dec 11 15:00:36 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 11 14:59:03 2018 +0100| [ccc0a8523f01d467482794481a1247e94aed552d] | committer: Geoffrey Métais

Fix scan on migration

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

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index a56bb655c..ca7d09d75 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -440,7 +440,7 @@ fun Context.startMedialibrary(firstRun: Boolean = false, upgrade: Boolean = fals
     ContextCompat.startForegroundService(this at startMedialibrary, intent
             .putExtra(EXTRA_FIRST_RUN, firstRun)
             .putExtra(EXTRA_UPGRADE, upgrade)
-            .putExtra(EXTRA_PARSE, parse && scanOpt == ML_SCAN_ON))
+            .putExtra(EXTRA_PARSE, parse && scanOpt != ML_SCAN_OFF))
 }
 
 private suspend fun dbExists(context: Context) = withContext(Dispatchers.IO) {



More information about the Android mailing list