diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-13 10:39:38 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-11-16 10:09:27 -0800 |
commit | b5f374c30d06dc0409891f85a4bd5e1e3ddf8700 (patch) | |
tree | 38d97242b22e1e901bf64542500597488e84ffb5 /src/com/android/gallery3d/app/MuteVideo.java | |
parent | 44dd798c3a814ffbdecc5adbc73dc47dc4dec646 (diff) | |
download | android_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.tar.gz android_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.tar.bz2 android_packages_apps_Gallery2-b5f374c30d06dc0409891f85a4bd5e1e3ddf8700.zip |
Video: Fix crash in trimming/muting video in GB.
Basically switched to use sherlock actionbar and protect various new methods
with API level check.
bug:7546257
Change-Id: Ic16f75126c619578a9e9c2520fa264687d89a2e6
Diffstat (limited to 'src/com/android/gallery3d/app/MuteVideo.java')
-rw-r--r-- | src/com/android/gallery3d/app/MuteVideo.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/MuteVideo.java b/src/com/android/gallery3d/app/MuteVideo.java index fbb1804fb..012b682ef 100644 --- a/src/com/android/gallery3d/app/MuteVideo.java +++ b/src/com/android/gallery3d/app/MuteVideo.java @@ -83,8 +83,7 @@ public class MuteVideo { // Show the result only when the activity not // stopped. Intent intent = new Intent(android.content.Intent.ACTION_VIEW); - intent.setDataAndTypeAndNormalize( - Uri.fromFile(mDstFileInfo.mFile), "video/*"); + intent.setDataAndType(Uri.fromFile(mDstFileInfo.mFile), "video/*"); intent.putExtra(MediaStore.EXTRA_FINISH_ON_COMPLETION, false); mActivity.startActivity(intent); } |