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) {