From f7735df137e037962a696e62e6ddd509ffbaa61c Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 1 Mar 2020 23:31:46 +0100 Subject: [PATCH] show the No Date Takens found error message only in some cases --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 5 ++++- 1 file changed, 4 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 312235ba9..a51b60e58 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 @@ -454,7 +454,10 @@ fun Activity.fixDateTaken(paths: ArrayList, showToasts: Boolean, hasResc } if (!didUpdateFile) { - toast(R.string.no_date_takens_found) + if (showToasts) { + toast(R.string.no_date_takens_found) + } + runOnUiThread { callback?.invoke() }