diff options
| author | 2019-06-07 07:43:35 -0700 | |
|---|---|---|
| committer | 2019-06-07 07:43:35 -0700 | |
| commit | ff17048c9109c817337251e3afca2cce95891835 (patch) | |
| tree | ce60afda1ea09787fb9b48e8f34b6c4ebddc5f9a | |
| parent | 0ea5b103d7133f53743cdf1da2a280f098e013b7 (diff) | |
Disable deep press by default
Unless a google3 flag is specified to enable deep press, do not
automatically enable this feature on the device.
Test: adb logcat | grep -i "deep press"
Test: dumpsys input
Bug: 134702173
Change-Id: I239ec1d0768d6fca23286c69ee42f19afc34c535
| -rw-r--r-- | services/inputflinger/InputClassifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputClassifier.cpp b/services/inputflinger/InputClassifier.cpp index ef1a2247e9..6a7f2797f4 100644 --- a/services/inputflinger/InputClassifier.cpp +++ b/services/inputflinger/InputClassifier.cpp @@ -82,7 +82,7 @@ static bool isTouchEvent(const NotifyMotionArgs& args) { // Check if the "deep touch" feature is on. static bool deepPressEnabled() { std::string flag_value = server_configurable_flags::GetServerConfigurableFlag( - INPUT_NATIVE_BOOT, DEEP_PRESS_ENABLED, "true"); + INPUT_NATIVE_BOOT, DEEP_PRESS_ENABLED, "false"); std::transform(flag_value.begin(), flag_value.end(), flag_value.begin(), ::tolower); if (flag_value == "1" || flag_value == "true") { ALOGI("Deep press feature enabled."); |