diff options
| author | 2009-11-11 10:54:58 -0800 | |
|---|---|---|
| committer | 2009-11-11 10:54:58 -0800 | |
| commit | 250aa068eae7424d454fc65ea83c8a65ca717112 (patch) | |
| tree | 55684a4478b921cc83f35d5e88e0ff327eb90d24 | |
| parent | b9c40a65c7fb2121d3076a522248574162bf5f8c (diff) | |
| parent | 65cb605e5d6ba099e7ce085e284b0b46fde8cabc (diff) | |
Merge change Idf7fafd3 into eclair
* changes:
Fix issue #2248951: Need to turn off touch filtering outside of sholes
| -rw-r--r-- | core/res/res/values/config.xml | 7 | ||||
| -rw-r--r-- | services/java/com/android/server/KeyInputQueue.java | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index aaa1d8bc11db..822a59af3811 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -207,4 +207,11 @@ <!-- Enables swipe versus poly-finger touch disambiguation in the KeyboardView --> <bool name="config_swipeDisambiguation">true</bool> + + <!-- Enables special filtering code in the framework for raw touch events + from the touch driver. This code exists for one particular device, + and should not be enabled for any others. Hopefully in the future + it will be removed when the lower-level touch driver generates better + data. --> + <bool name="config_filterTouchEvents">false</bool> </resources> diff --git a/services/java/com/android/server/KeyInputQueue.java b/services/java/com/android/server/KeyInputQueue.java index d68ccfab000c..a885df8c632e 100644 --- a/services/java/com/android/server/KeyInputQueue.java +++ b/services/java/com/android/server/KeyInputQueue.java @@ -56,7 +56,7 @@ public abstract class KeyInputQueue { * Turn on some hacks we have to improve the touch interaction with a * certain device whose screen currently is not all that good. */ - static final boolean BAD_TOUCH_HACK = true; + static boolean BAD_TOUCH_HACK = false; private static final String EXCLUDED_DEVICES_PATH = "etc/excluded-input-devices.xml"; @@ -282,6 +282,9 @@ public abstract class KeyInputQueue { lt = new LatencyTimer(100, 1000); } + BAD_TOUCH_HACK = context.getResources().getBoolean( + com.android.internal.R.bool.config_filterTouchEvents); + mHapticFeedbackCallback = hapticFeedbackCallback; readExcludedDevices(); |