summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-10-02 11:21:37 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-10-02 11:21:40 -0700
commit2bc896eba093277e7e530b4dca35ec09ed523c0b (patch)
treeec045caf8d451b074791e2b52839b4b67297808f
parentfa434b0ece14ed98eb0e25d3a13374720d641709 (diff)
downloadandroid_packages_apps_Snap-2bc896eba093277e7e530b4dca35ec09ed523c0b.tar.gz
android_packages_apps_Snap-2bc896eba093277e7e530b4dca35ec09ed523c0b.tar.bz2
android_packages_apps_Snap-2bc896eba093277e7e530b4dca35ec09ed523c0b.zip
Trimming: Exit current activity after click done
Don't auto exit the trimmed video playing. bug:7093055 Change-Id: I97fa1556cbe0591f2204ab4135b85375f82abbe8
-rw-r--r--src/com/android/gallery3d/app/TrimVideo.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/TrimVideo.java b/src/com/android/gallery3d/app/TrimVideo.java
index cb5b1711f..09a2abdf0 100644
--- a/src/com/android/gallery3d/app/TrimVideo.java
+++ b/src/com/android/gallery3d/app/TrimVideo.java
@@ -29,6 +29,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
+import android.provider.MediaStore;
import android.provider.MediaStore.Video;
import android.provider.MediaStore.Video.VideoColumns;
import android.view.View;
@@ -316,7 +317,9 @@ public class TrimVideo extends Activity implements
// Show the result only when the activity not stopped.
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
intent.setDataAndTypeAndNormalize(Uri.fromFile(mDstFile), "video/*");
+ intent.putExtra(MediaStore.EXTRA_FINISH_ON_COMPLETION, false);
startActivity(intent);
+ finish();
}
}
});