diff options
author | Doris Liu <tianliu@google.com> | 2012-10-17 16:15:51 -0700 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2012-10-17 18:44:10 -0700 |
commit | 9726d8bed6fa6b0403466be4aceb860dffa57b80 (patch) | |
tree | ae74ec93a2502ccca52b991d9183cf8ddf097cf5 /src/com/android/gallery3d/app/PhotoPage.java | |
parent | 82a5fe8fb0d44c497dcb419b6693ef3d28de3e8e (diff) | |
download | android_packages_apps_Snap-9726d8bed6fa6b0403466be4aceb860dffa57b80.tar.gz android_packages_apps_Snap-9726d8bed6fa6b0403466be4aceb860dffa57b80.tar.bz2 android_packages_apps_Snap-9726d8bed6fa6b0403466be4aceb860dffa57b80.zip |
Save edited picasa to "Edited Online Photos" album
Bug: 7346157
This CL includes the following changes:
1) Save the new image to a new folder named "Edited Online Photos"
2) After the picture is saved, the user will be in the "Edited Online Photos" folder
3) Change the toast during saving to "Saving to" + new folder name
Change-Id: Ic505925425419ba9e3c7dac31fd403bf73d6887d
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 90b82cefc..ecb48329a 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1180,6 +1180,16 @@ public class PhotoPage extends ActivityState implements Path path = mApplication.getDataManager() .findPathByUri(intent.getData(), intent.getType()); if (path != null) { + Path albumPath = mApplication.getDataManager().getDefaultSetOf(path); + if (!albumPath.equalsIgnoreCase(mOriginalSetPathString)) { + // If the edited image is stored in a different album, we need + // to start a new activity state to show the new image + Bundle data = new Bundle(getData()); + data.putString(KEY_MEDIA_SET_PATH, albumPath.toString()); + data.putString(PhotoPage.KEY_MEDIA_ITEM_PATH, path.toString()); + mActivity.getStateManager().startState(PhotoPage.class, data); + return; + } mModel.setCurrentPhoto(path, mCurrentIndex); } } |