summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/FilterShowActivity.java
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-07-24 20:06:20 -0700
committerRuben Brunk <rubenbrunk@google.com>2013-07-25 09:50:23 -0700
commit568b8d8bade4aac4bc598dff9b76ced159c533bf (patch)
tree742e4f4596b39be61214b682464332f6ba6401e5 /src/com/android/gallery3d/filtershow/FilterShowActivity.java
parent2d3b8b11f03ab41558866d2b996b76e0ceef845a (diff)
downloadandroid_packages_apps_Gallery2-568b8d8bade4aac4bc598dff9b76ced159c533bf.tar.gz
android_packages_apps_Gallery2-568b8d8bade4aac4bc598dff9b76ced159c533bf.tar.bz2
android_packages_apps_Gallery2-568b8d8bade4aac4bc598dff9b76ced159c533bf.zip
Added support to export to a flattened photo.
Bug: 10008212 - Adds a menu item to allow a photo with edits to be flattened into a separate photo. - Fixes bug where crop intents fail to save cropped images. Change-Id: I1dcf1bb9ba22e72378f24e7971a74f81b8db7564
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index c03ba78c2..7929e252d 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -815,6 +815,14 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
mShowingImageStatePanel ? "ShowPanel" : "HidePanel");
return true;
}
+ case R.id.exportFlattenButton: {
+ Uri sourceUri = MasterImage.getImage().getUri();
+ File dest = SaveImage.getNewFile(this, sourceUri);
+ Intent processIntent = ProcessingService.getSaveIntent(this, MasterImage.getImage()
+ .getPreset(), dest, getSelectedImageUri(), sourceUri, true);
+ startService(processIntent);
+ return true;
+ }
case android.R.id.home: {
saveImage();
return true;