summaryrefslogtreecommitdiff
path: root/libs/input/VelocityTracker.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2018-04-18 14:28:58 -0700
committer Siarhei Vishniakou <svv@google.com> 2018-04-18 15:13:32 -0700
commit55d48df150b9ae7b6b450fea794e3668dca46bb1 (patch)
treec5cf04566fd614191384e5281d6d33790ed7b0fd /libs/input/VelocityTracker.cpp
parent78c0e52ba869c22e1cbb35828fba258482fe95cf (diff)
Use persist property for velocitytracker strategy
Currently, setting the debug.velocitytracker.strategy property is not convenient because it requires adb shell stop; adb shell start for the changes to be picked up everywhere. It also does not persist across reboots. Putting this property into persist will allow us to fishfood these changes more easily since the config can just be done once. Bug: 35412046 Test: adb shell setprop persist.input.velocitytracker.strategy impulse and observe that the strategy is being changed, after adding logging to each strategy to distinguish them. Change-Id: I9f6eb2113cfdeccfdf784c00d7da3ac3c186e499
Diffstat (limited to 'libs/input/VelocityTracker.cpp')
-rw-r--r--libs/input/VelocityTracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/VelocityTracker.cpp b/libs/input/VelocityTracker.cpp
index c07a81245a..496158b9cd 100644
--- a/libs/input/VelocityTracker.cpp
+++ b/libs/input/VelocityTracker.cpp
@@ -115,7 +115,7 @@ VelocityTracker::VelocityTracker(const char* strategy) :
// Allow the default strategy to be overridden using a system property for debugging.
if (!strategy) {
- int length = property_get("debug.velocitytracker.strategy", value, NULL);
+ int length = property_get("persist.input.velocitytracker.strategy", value, NULL);
if (length > 0) {
strategy = value;
} else {