am b4cce184: am 9bc0e811: Update bucket_display_list and bucket_id columns when renaming directories via MTP
* commit 'b4cce1845336fe11dfd41b0eda14892e26799abf':
Update bucket_display_list and bucket_id columns when renaming directories via MTP
diff --git a/src/com/android/providers/media/MediaProvider.java b/src/com/android/providers/media/MediaProvider.java
index 5e7762a..5b49f27 100644
--- a/src/com/android/providers/media/MediaProvider.java
+++ b/src/com/android/providers/media/MediaProvider.java
@@ -3004,7 +3004,9 @@
File file = new File(path);
if (file.exists()) {
values.put(FileColumns.DATE_MODIFIED, file.lastModified() / 1000);
- values.put(FileColumns.SIZE, file.length());
+ if (!values.containsKey(FileColumns.SIZE)) {
+ values.put(FileColumns.SIZE, file.length());
+ }
}
}