Merge "Let single tap devices wake up with double tap"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e837bf4dc6
@@ -114,17 +114,19 @@ public class StatusBarWindowView extends FrameLayout {
|
||||
if (mSingleTapEnabled) {
|
||||
mService.wakeUpIfDozing(SystemClock.uptimeMillis(), StatusBarWindowView.this,
|
||||
"SINGLE_TAP");
|
||||
return true;
|
||||
}
|
||||
return mSingleTapEnabled;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onDoubleTap(MotionEvent e) {
|
||||
if (mDoubleTapEnabled) {
|
||||
if (mDoubleTapEnabled || mSingleTapEnabled) {
|
||||
mService.wakeUpIfDozing(SystemClock.uptimeMillis(), StatusBarWindowView.this,
|
||||
"DOUBLE_TAP");
|
||||
return true;
|
||||
}
|
||||
return mDoubleTapEnabled;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
private final TunerService.Tunable mTunable = (key, newValue) -> {
|
||||
|
||||
Reference in New Issue
Block a user