summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Yoo <jyoo@codeaurora.org>2016-01-14 09:56:23 -0800
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:45:45 -0700
commit1f74331cd50b58a2ea7ad846a4ca1e9a1bd5242d (patch)
tree8ccbdf645b0de0bca00f7846041e1dffed593dc2
parentf10d6c1be19922e657c808773f72f94bd03f0c22 (diff)
downloadandroid_packages_apps_Snap-1f74331cd50b58a2ea7ad846a4ca1e9a1bd5242d.zip
android_packages_apps_Snap-1f74331cd50b58a2ea7ad846a4ca1e9a1bd5242d.tar.gz
android_packages_apps_Snap-1f74331cd50b58a2ea7ad846a4ca1e9a1bd5242d.tar.bz2
SnapdragonCamera: Adding toast for media recording failure.
Adding toast message to be shown to the user when media recording is failed due to permission issue. Change-Id: I5392b41b97c73ade8df7b5d70647361306c4f695 CRs-Fixed: 944657
-rw-r--r--src/com/android/camera/VideoModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index e1c8cee..1c87968 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1922,7 +1922,7 @@ public class VideoModule implements CameraModule,
try {
mMediaRecorder.start(); // Recording is now started
} catch (RuntimeException e) {
- Log.e(TAG, "Could not start media recorder. ", e);
+ Toast.makeText(mActivity,"Could not start media recorder.\n Can't start video recording.", Toast.LENGTH_LONG).show();
releaseMediaRecorder();
releaseAudioFocus();
// If start fails, frameworks will not lock the camera for us.