From d2c12316d3cce87a6e6b2388c1bd2511b321a973 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 4 Oct 2023 15:35:38 -0700 Subject: [PATCH] rename variables --- .../main/java/gallery/memories/mapper/SystemImage.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/gallery/memories/mapper/SystemImage.kt b/app/src/main/java/gallery/memories/mapper/SystemImage.kt index ce857069..d6840238 100644 --- a/app/src/main/java/gallery/memories/mapper/SystemImage.kt +++ b/app/src/main/java/gallery/memories/mapper/SystemImage.kt @@ -186,7 +186,7 @@ class SystemImage { try { return ExifInterface(dataPath) } catch (e: Exception) { - Log.e(TAG, "Failed to read EXIF daddta: " + e.message) + Log.w(TAG, "Failed to read EXIF data: " + e.message) return null } } @@ -204,7 +204,7 @@ class SystemImage { return it.time / 1000 } } catch (e: Exception) { - Log.e(TAG, "Failed to read EXIF datetime: " + e.message) + Log.w(TAG, "Failed to read EXIF datetime: " + e.message) } } @@ -217,18 +217,18 @@ class SystemImage { } fun buid(exif: ExifInterface?): String { - var imageUniqueId = "size=$size" + var sfx = "size=$size" if (exif != null) { try { val iuid = exif.getAttribute(ExifInterface.TAG_IMAGE_UNIQUE_ID) ?: throw IOException() - imageUniqueId = "iuid=$iuid" + sfx = "iuid=$iuid" } catch (e: Exception) { - Log.e(TAG, "Failed to read EXIF unique ID ($baseName): " + e.message) + Log.w(TAG, "Failed to read EXIF unique ID ($baseName): " + e.message) } } - return md5("$baseName$imageUniqueId"); + return md5("$baseName$sfx"); } /**