Only show toast when progress is enabled
This commit is contained in:
parent
27f4cb901a
commit
7c19642487
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue