Skip to content

Commit 1eac3fb

Browse files
committed
Disable manual scan on Android 9 and below
`MediaMetadataRetriever` crashes natively on some wierd android 9 devices
1 parent a2bdb55 commit 1eac3fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/musicplayer/helpers/SimpleMediaScanner.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ class SimpleMediaScanner(private val context: Application) {
6060
ensureBackgroundThread {
6161
try {
6262
scanMediaStore()
63-
onScanComplete?.invoke(false)
64-
scanFilesManually()
63+
if (isQPlus()) {
64+
onScanComplete?.invoke(false)
65+
scanFilesManually()
66+
}
6567

6668
cleanupDatabase()
6769
onScanComplete?.invoke(true)

0 commit comments

Comments
 (0)