From 225337a1d32065d994c3549805e263aa78b0500b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 2 Dec 2018 17:32:23 +0100 Subject: [PATCH] show the error thrown at moving files in the recycle bin --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index 83f1bc600..f52ce8c0c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -214,7 +214,9 @@ fun BaseSimpleActivity.movePathsInRecycleBin(paths: ArrayList, mediumDao mediumDao.updateDeleted(it, System.currentTimeMillis()) pathsCnt-- } - } catch (ignored: Exception) { + } catch (e: Exception) { + showErrorToast(e) + return@forEach } } callback?.invoke(pathsCnt == 0)