show the error thrown at moving files in the recycle bin

This commit is contained in:
tibbi 2018-12-02 17:32:23 +01:00
parent f751adcd97
commit 225337a1d3

View file

@ -214,7 +214,9 @@ fun BaseSimpleActivity.movePathsInRecycleBin(paths: ArrayList<String>, mediumDao
mediumDao.updateDeleted(it, System.currentTimeMillis())
pathsCnt--
}
} catch (ignored: Exception) {
} catch (e: Exception) {
showErrorToast(e)
return@forEach
}
}
callback?.invoke(pathsCnt == 0)