am 96ed5dcd: am 6d1fac3d: Merge "Update buckets after path changes." into jb-mr1-dev
* commit '96ed5dcd7f84926c1224914a4ad25f94a722d245':
Update buckets after path changes.
diff --git a/src/com/android/providers/media/MediaProvider.java b/src/com/android/providers/media/MediaProvider.java
index 607dc8d..038380c 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());
+ }
}
}