Skip to content

Commit 7194bc9

Browse files
mikeNGtemasek
authored andcommitted
SystemUI: Don't vibrate on touchscreen camera gesture
* This is usually handled in device-specific keyhandler, where vibration is optional and has the same duration in all gestures Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d
1 parent 09d09a1 commit 7194bc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5831,7 +5831,9 @@ public void onCameraLaunchGestureDetected(int source) {
58315831
pm.wakeUp(SystemClock.uptimeMillis(), "com.android.systemui:CAMERA_GESTURE");
58325832
mStatusBarKeyguardViewManager.notifyDeviceWakeUpRequested();
58335833
}
5834-
vibrateForCameraGesture();
5834+
if (source != StatusBarManager.CAMERA_LAUNCH_SOURCE_SCREEN_GESTURE) {
5835+
vibrateForCameraGesture();
5836+
}
58355837
if (!mStatusBarKeyguardViewManager.isShowing()) {
58365838
startActivity(KeyguardBottomAreaView.INSECURE_CAMERA_INTENT,
58375839
true /* dismissShade */);

0 commit comments

Comments
 (0)