summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Quinn <pquinn@google.com>2019-12-09 12:08:44 -0800
committerPhilip Quinn <pquinn@google.com>2019-12-09 12:10:44 -0800
commit64f1c16f4ef982fb183490321ddfdeca5a9de2e0 (patch)
treea480f1a81cb6d6faa1da637721642a20e36f0af7
parent5b8a4109f5195e3ca626ab1e6ce9bfd2d1c3f2a8 (diff)
downloadnative-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.cpp2
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.");