diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-09-25 13:58:56 +0800 |
---|---|---|
committer | Xiaojing Zhang <zhangx@codeaurora.org> | 2014-11-04 20:38:22 -0800 |
commit | 8782b321e4996e8948febdd02ca76af4d9d43085 (patch) | |
tree | 365cd1398b0611e11b12f744358c18896dc84896 /src/com/android/gallery3d | |
parent | ab597de093e6ec7788f88d36cc870947cc484438 (diff) | |
download | android_packages_apps_Gallery2-8782b321e4996e8948febdd02ca76af4d9d43085.tar.gz android_packages_apps_Gallery2-8782b321e4996e8948febdd02ca76af4d9d43085.tar.bz2 android_packages_apps_Gallery2-8782b321e4996e8948febdd02ca76af4d9d43085.zip |
Gallery2: Fix the original picture not display after edit.
Not move the origianl picture to auxiliary directory and insert
the edited picture record to the database.
CRs-fixed: 714431
Change-Id: I5b8fce7b24cc812463282d114094356707c2096c
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r-- | src/com/android/gallery3d/filtershow/tools/SaveImage.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/tools/SaveImage.java b/src/com/android/gallery3d/filtershow/tools/SaveImage.java index ecf3e2fae..24927f00c 100644 --- a/src/com/android/gallery3d/filtershow/tools/SaveImage.java +++ b/src/com/android/gallery3d/filtershow/tools/SaveImage.java @@ -348,9 +348,9 @@ public class SaveImage { // newSourceUri is then pointing to the new location. // If no file is moved, newSourceUri will be the same as mSourceUri. Uri newSourceUri = mSourceUri; - if (!flatten) { - newSourceUri = moveSrcToAuxIfNeeded(mSourceUri, mDestinationFile); - } + /* + * if (!flatten) { newSourceUri = moveSrcToAuxIfNeeded(mSourceUri, mDestinationFile); } + */ Uri savedUri = mSelectedImageUri; if (mPreviewImage != null) { @@ -382,7 +382,7 @@ public class SaveImage { // After this call, mSelectedImageUri will be actually // pointing at the new file mDestinationFile. savedUri = SaveImage.linkNewFileToUri(mContext, mSelectedImageUri, - mDestinationFile, time, !flatten); + mDestinationFile, time, false); } } if (mCallback != null) { |