commit | aa22947b6f0714b73a78a28fb1217f7c5f4f663d | [log] [tgz] |
---|---|---|
author | ztenghui <ztenghui@google.com> | Mon Nov 18 16:13:55 2013 -0800 |
committer | ztenghui <ztenghui@google.com> | Mon Nov 18 16:13:55 2013 -0800 |
tree | 01adee1f7d37f9c6bf88836a49650eb0bb42e9b5 | |
parent | 1619b3c3ed20fad548d31464ab5a2252b2c3b65f [diff] |
Fix the thumbnail generation. bug:11664501 Change-Id: I53ec5a08e801d0300b8ed159158bc46f61c6d3f4
diff --git a/src/com/android/gallery3d/filtershow/tools/SaveImage.java b/src/com/android/gallery3d/filtershow/tools/SaveImage.java index c3cdea8..0c12fa4 100644 --- a/src/com/android/gallery3d/filtershow/tools/SaveImage.java +++ b/src/com/android/gallery3d/filtershow/tools/SaveImage.java
@@ -706,6 +706,9 @@ values.put(Images.Media.ORIENTATION, 0); values.put(Images.Media.DATA, file.getAbsolutePath()); values.put(Images.Media.SIZE, file.length()); + // This is a workaround to trigger the MediaProvider to re-generate the + // thumbnail. + values.put(Images.Media.MINI_THUMB_MAGIC, 0); final String[] projection = new String[] { ImageColumns.DATE_TAKEN,