summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorrepo sync <raychen@google.com>2009-05-20 16:52:23 +0800
committerrepo sync <raychen@google.com>2009-05-21 10:30:12 +0800
commitcb79ab13392eae4919f4dde5d109d76f78eaab9a (patch)
tree3a0548e8930f8da22726bb19df00d498d1ac4886 /src/com/android
parent82ded2070a47fff16e1de1c78b516eb25888b91e (diff)
downloadLegacyCamera-cb79ab13392eae4919f4dde5d109d76f78eaab9a.zip
LegacyCamera-cb79ab13392eae4919f4dde5d109d76f78eaab9a.tar.gz
LegacyCamera-cb79ab13392eae4919f4dde5d109d76f78eaab9a.tar.bz2
Fix Issue 1750544.
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/camera/VideoCamera.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 7f40026..1743383 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -1097,8 +1097,12 @@ public class VideoCamera extends Activity implements View.OnClickListener,
// and the target for actions (play, delete, ...) will be correct.
if (!mIsVideoCaptureIntent) {
- mCurrentVideoUri = mThumbController.getUri();
- mCurrentVideoFilename = getDataPath(mCurrentVideoUri);
+ if (mThumbController.isUriValid()) {
+ mCurrentVideoUri = mThumbController.getUri();
+ mCurrentVideoFilename = getDataPath(mCurrentVideoUri);
+ } else {
+ return;
+ }
}
String path = mCurrentVideoFilename;