diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-09-25 13:58:56 +0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2014-12-15 14:46:20 -0800 |
commit | 20ce3978aae939d7a28bed33910806c2aaf344a4 (patch) | |
tree | 365cd1398b0611e11b12f744358c18896dc84896 | |
parent | 2961e38790825c0bdf5a01c2ec87e51ae344a6ff (diff) | |
download | android_packages_apps_Gallery2-20ce3978aae939d7a28bed33910806c2aaf344a4.tar.gz android_packages_apps_Gallery2-20ce3978aae939d7a28bed33910806c2aaf344a4.tar.bz2 android_packages_apps_Gallery2-20ce3978aae939d7a28bed33910806c2aaf344a4.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
-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) { |