old mode 100755new mode 100644.. | .. |
---|
122 | 122 | CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), |
---|
123 | 123 | finishActivity, ex); |
---|
124 | 124 | } |
---|
| 125 | + @Override |
---|
| 126 | + public void onRecordingFailure() { |
---|
| 127 | + Exception ex = new Exception(); |
---|
| 128 | + // Log a stack trace to be sure we can track the source. |
---|
| 129 | + Log.e(TAG, "Handling Camera recording Error:", ex); |
---|
| 130 | + |
---|
| 131 | + UsageStatistics.instance().cameraFailure( |
---|
| 132 | + eventprotos.CameraFailure.FailureReason.UNKNOWN_REASON, null, |
---|
| 133 | + UsageStatistics.NONE, UsageStatistics.NONE); |
---|
| 134 | + |
---|
| 135 | + Reason reason = Reason.CAMERA_VIDEO_QUALITY_FAILURE; |
---|
| 136 | + boolean finishActivity = reason.doesFinishActivity(); |
---|
| 137 | + CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), |
---|
| 138 | + finishActivity, ex); |
---|
| 139 | + } |
---|
125 | 140 | } |
---|