show the No Date Takens found error message only in some cases

This commit is contained in:
tibbi 2020-03-01 23:31:46 +01:00
parent 413ced9b87
commit f7735df137

View file

@ -454,7 +454,10 @@ fun Activity.fixDateTaken(paths: ArrayList<String>, showToasts: Boolean, hasResc
} }
if (!didUpdateFile) { if (!didUpdateFile) {
if (showToasts) {
toast(R.string.no_date_takens_found) toast(R.string.no_date_takens_found)
}
runOnUiThread { runOnUiThread {
callback?.invoke() callback?.invoke()
} }