From 0ced7023f15a45249e2cc66c820e31517631b2f4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 14 Aug 2018 09:10:21 +0200 Subject: [PATCH] fix #913, at fixing the Date Taken value update it at Favorite items too --- .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 3 +++ .../com/simplemobiletools/gallery/interfaces/MediumDao.kt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index 096cebbec..c8c9f1dfb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -292,6 +292,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList() + val mediumDao = activity.galleryDB.MediumDao() val paths = getSelectedPaths() for (path in paths) { val dateTime = ExifInterface(path).getAttribute(ExifInterface.TAG_DATETIME) ?: continue @@ -312,6 +313,8 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList