diff options
author | Philip Quinn <pquinn@google.com> | 2019-12-09 12:08:44 -0800 |
---|---|---|
committer | Philip Quinn <pquinn@google.com> | 2019-12-09 12:10:44 -0800 |
commit | 64f1c16f4ef982fb183490321ddfdeca5a9de2e0 (patch) | |
tree | a480f1a81cb6d6faa1da637721642a20e36f0af7 | |
parent | 5b8a4109f5195e3ca626ab1e6ce9bfd2d1c3f2a8 (diff) | |
download | native-64f1c16f4ef982fb183490321ddfdeca5a9de2e0.tar.gz |
Enable deep press by default.
Bug: 140582282
Test: deep press events propagate on a clean F2 device
Change-Id: I4aa94b50d1619e614b8fa9b1d1518335007d0bc9
-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 6a7f2797f4..ef1a2247e9 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, "false"); + INPUT_NATIVE_BOOT, DEEP_PRESS_ENABLED, "true"); std::transform(flag_value.begin(), flag_value.end(), flag_value.begin(), ::tolower); if (flag_value == "1" || flag_value == "true") { ALOGI("Deep press feature enabled."); |