From f5b66e7f55c664bd315e5f732863da326fe93aaa Mon Sep 17 00:00:00 2001 From: k3b <1374583+k3b@users.noreply.github.com> Date: Tue, 22 Dec 2020 14:19:10 +0100 Subject: [PATCH] #169: Update exif-file-info also updates mediadb without changing mediadb-id: Imagedetail: EditExif,rename,move,copy,delete --- .../java/de/k3b/android/io/AndroidFileCommandsDbImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/k3b/android/io/AndroidFileCommandsDbImpl.java b/app/src/main/java/de/k3b/android/io/AndroidFileCommandsDbImpl.java index e81024fc..72884ee4 100644 --- a/app/src/main/java/de/k3b/android/io/AndroidFileCommandsDbImpl.java +++ b/app/src/main/java/de/k3b/android/io/AndroidFileCommandsDbImpl.java @@ -102,10 +102,11 @@ private boolean renameInDatabase(String dbgContext, IFile targetFullPath, IFile ContentValues values = new ContentValues(); values.put(FotoSql.SQL_COL_PATH, toPath); final int execResultCount = FotoSql.getMediaDBApi(). - execUpdate(this.getClass().getSimpleName() + dbgContext, fromPath, values, null); + execUpdate(this.getClass().getSimpleName() + dbgContext, + sourceFullPath.getAbsolutePath(), values, null); + return 1 == execResultCount; } - - return 1 == execResultCount; + return false; } private Uri copyInDatabase(String dbgContext, String fromPath, String toPath) {