diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-13 10:39:26 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-14 11:34:05 -0800 |
commit | 46da45f76cae4b7cbcb9706cbd54b8b4b064f11d (patch) | |
tree | 2d87e3145ba07dcb46be6d9c879d813f68241c8e /src/com/android/gallery3d/app/PhotoPage.java | |
parent | cdcdf7102a49abad68a0e3b70e7870dd2787dc66 (diff) | |
download | android_packages_apps_Snap-46da45f76cae4b7cbcb9706cbd54b8b4b064f11d.tar.gz android_packages_apps_Snap-46da45f76cae4b7cbcb9706cbd54b8b4b064f11d.tar.bz2 android_packages_apps_Snap-46da45f76cae4b7cbcb9706cbd54b8b4b064f11d.zip |
Video: Add the mute functionality.
1. Enable the mute video functionality.
2. Consolidate the sharing code, especially for file handling.
bug:7543943
Change-Id: Ie7ec605996bc3242b1a50385f506e6a50ee2d2fc
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index da5465b93..a3e85ac84 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1069,6 +1069,12 @@ public abstract class PhotoPage extends ActivityState implements mActivity.startActivityForResult(intent, REQUEST_TRIM); return true; } + case R.id.action_mute: { + MuteVideo muteVideo = new MuteVideo(current, + manager.getContentUri(path), mActivity); + muteVideo.muteInBackground(); + return true; + } case R.id.action_edit: { launchPhotoEditor(); return true; |