summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/LocalAlbum.java
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2012-10-17 16:15:51 -0700
committerDoris Liu <tianliu@google.com>2012-10-17 18:44:10 -0700
commit0addfc7f6342184a67cdd8b5cc3872c6a5c87e55 (patch)
tree4c6547d756e919a28ae2ee3a2adaf0557db0813c /src/com/android/gallery3d/data/LocalAlbum.java
parentef8597fe38f9808096cc2f68921a54a6fc01e3f0 (diff)
downloadandroid_packages_apps_Gallery2-0addfc7f6342184a67cdd8b5cc3872c6a5c87e55.tar.gz
android_packages_apps_Gallery2-0addfc7f6342184a67cdd8b5cc3872c6a5c87e55.tar.bz2
android_packages_apps_Gallery2-0addfc7f6342184a67cdd8b5cc3872c6a5c87e55.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/data/LocalAlbum.java')
-rw-r--r--src/com/android/gallery3d/data/LocalAlbum.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/data/LocalAlbum.java b/src/com/android/gallery3d/data/LocalAlbum.java
index 8bbc364ec..e05aac01b 100644
--- a/src/com/android/gallery3d/data/LocalAlbum.java
+++ b/src/com/android/gallery3d/data/LocalAlbum.java
@@ -274,7 +274,7 @@ public class LocalAlbum extends MediaSet {
return true;
}
- private static String getLocalizedName(Resources res, int bucketId,
+ public static String getLocalizedName(Resources res, int bucketId,
String name) {
if (bucketId == MediaSetUtils.CAMERA_BUCKET_ID) {
return res.getString(R.string.folder_camera);
@@ -284,6 +284,8 @@ public class LocalAlbum extends MediaSet {
return res.getString(R.string.folder_imported);
} else if (bucketId == MediaSetUtils.SNAPSHOT_BUCKET_ID) {
return res.getString(R.string.folder_screenshot);
+ } else if (bucketId == MediaSetUtils.EDITED_ONLINE_PHOTOS_BUCKET_ID) {
+ return res.getString(R.string.folder_edited_online_photos);
} else {
return name;
}