Skip to content
Snippets Groups Projects
Commit 8358f748 authored by Duncan McNamara's avatar Duncan McNamara
Browse files

ML: start ml but not scan without permissions

This stop the medialibrary from scanning the filesystem without
permissions
parent d2a556ec
No related branches found
No related tags found
1 merge request!1299Having the medialibrary running without permission and no local scanning
......@@ -82,7 +82,7 @@ fun Context.startMedialibrary(firstRun: Boolean = false, upgrade: Boolean = fals
.putExtra(EXTRA_FIRST_RUN, firstRun)
.putExtra(EXTRA_UPGRADE, upgrade)
.putExtra(EXTRA_REMOVE_DEVICE, removeDevices)
.putExtra(EXTRA_PARSE, parse && scanOpt != ML_SCAN_OFF))
.putExtra(EXTRA_PARSE, parse && scanOpt != ML_SCAN_OFF && canReadStorage(this@startMedialibrary)))
}
suspend fun Context.dbExists(coroutineContextProvider: CoroutineContextProvider = CoroutineContextProvider()) = withContext(coroutineContextProvider.IO) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment