Only show toast when progress is enabled

This commit is contained in:
Naveen 2023-07-19 16:21:46 +05:30
parent 27f4cb901a
commit 7c19642487
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -75,7 +75,7 @@ class SimpleMediaScanner(private val context: Application) {
onScanComplete?.invoke(true)
} catch (ignored: Exception) {
} finally {
if (newTracks.isEmpty()) {
if (showProgress && newTracks.isEmpty()) {
context.toast(R.string.no_items_found)
}