diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2013-07-24 20:06:20 -0700 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-07-25 09:50:23 -0700 |
commit | 16967913de669502464cdd1aa2a389c24d123f70 (patch) | |
tree | cd9926a22fcdf6228a65c8ccecb38764e70e2abd /src/com/android/gallery3d/filtershow/FilterShowActivity.java | |
parent | 6a8e8a1a0f3e8e62cd350733e275047475380d6b (diff) | |
download | android_packages_apps_Snap-16967913de669502464cdd1aa2a389c24d123f70.tar.gz android_packages_apps_Snap-16967913de669502464cdd1aa2a389c24d123f70.tar.bz2 android_packages_apps_Snap-16967913de669502464cdd1aa2a389c24d123f70.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.java | 8 |
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; |