summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorqimengp <qimengp@codeaurora.org>2017-07-10 18:41:51 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-10 03:45:29 -0700
commitb6ffe3a951322375c425351df975b8a8937fd3f4 (patch)
tree56ef66e1e64aa8c7f5115b76ca4bcffec0f1786c /src
parentb9ecba2215ee721588dc7409b303fcefcd4a88e6 (diff)
downloadandroid_packages_apps_Snap-b6ffe3a951322375c425351df975b8a8937fd3f4.tar.gz
android_packages_apps_Snap-b6ffe3a951322375c425351df975b8a8937fd3f4.tar.bz2
android_packages_apps_Snap-b6ffe3a951322375c425351df975b8a8937fd3f4.zip
SnapdragonCamera: Support key event to start and stop video record
Support key event to start and stop video record for camera2 Change-Id: I6ecefdf201f24f6fdf68969cb277937588ae4b65
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/CaptureModule.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index cd21d5b9d..5499154d1 100644
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -2587,6 +2587,11 @@ public class CaptureModule implements CameraModule, PhotoController,
onShutterButtonClick();
}
return true;
+ case KeyEvent.KEYCODE_MEDIA_RECORD:
+ if (mFirstTimeInitialized && event.getRepeatCount() == 0) {
+ onVideoButtonClick();
+ }
+ return true;
}
return false;
}