diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-03-14 15:19:23 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-03-14 15:53:42 -0700 |
commit | 48e9a7730db170c4dfd36156323cd54ddafe7117 (patch) | |
tree | 66b862eff4f34b0674b7a09770d5c30d8daa8cb8 /src/com/android/gallery3d/app/MuteVideo.java | |
parent | acca4ee0fefe6442b853510b6b360f6cb7ad1bc5 (diff) | |
download | android_packages_apps_Snap-48e9a7730db170c4dfd36156323cd54ddafe7117.tar.gz android_packages_apps_Snap-48e9a7730db170c4dfd36156323cd54ddafe7117.tar.bz2 android_packages_apps_Snap-48e9a7730db170c4dfd36156323cd54ddafe7117.zip |
Add many contextual actions to new gallery
Change-Id: Ied57636c7bf0804ad015ddc664e177633c549e08
Diffstat (limited to 'src/com/android/gallery3d/app/MuteVideo.java')
-rw-r--r-- | src/com/android/gallery3d/app/MuteVideo.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/MuteVideo.java b/src/com/android/gallery3d/app/MuteVideo.java index 012b682ef..d3f3aa594 100644 --- a/src/com/android/gallery3d/app/MuteVideo.java +++ b/src/com/android/gallery3d/app/MuteVideo.java @@ -35,7 +35,7 @@ public class MuteVideo { private ProgressDialog mMuteProgress; - private MediaItem mCurrentItem = null; + private String mFilePath = null; private Uri mUri = null; private SaveVideoFileInfo mDstFileInfo = null; private Activity mActivity = null; @@ -43,9 +43,9 @@ public class MuteVideo { final String TIME_STAMP_NAME = "'MUTE'_yyyyMMdd_HHmmss"; - public MuteVideo(MediaItem current, Uri uri, Activity activity) { + public MuteVideo(String filePath, Uri uri, Activity activity) { mUri = uri; - mCurrentItem = current; + mFilePath = filePath; mActivity = activity; } @@ -59,7 +59,7 @@ public class MuteVideo { @Override public void run() { try { - VideoUtils.startMute(mCurrentItem.getFilePath(), mDstFileInfo); + VideoUtils.startMute(mFilePath, mDstFileInfo); SaveVideoFileUtils.insertContent( mDstFileInfo, mActivity.getContentResolver(), mUri); } catch (IOException e) { |