Skip to content

Commit

Permalink
SystemUI: Don't vibrate on touchscreen camera gesture
Browse files Browse the repository at this point in the history
* This is usually handled in device-specific keyhandler,
  where vibration is optional and has the same duration
  in all gestures

Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d
  • Loading branch information
mikeNG authored and temasek committed Feb 28, 2016
1 parent f2668db commit 360d64e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5831,7 +5831,9 @@ public void onCameraLaunchGestureDetected(int source) {
pm.wakeUp(SystemClock.uptimeMillis(), "com.android.systemui:CAMERA_GESTURE");
mStatusBarKeyguardViewManager.notifyDeviceWakeUpRequested();
}
vibrateForCameraGesture();
if (source != StatusBarManager.CAMERA_LAUNCH_SOURCE_SCREEN_GESTURE) {
vibrateForCameraGesture();
}
if (!mStatusBarKeyguardViewManager.isShowing()) {
startActivity(KeyguardBottomAreaView.INSECURE_CAMERA_INTENT,
true /* dismissShade */);
Expand Down

0 comments on commit 360d64e

Please sign in to comment.