Use Build.HARDWARE to determine "sudden jumping hack"

Bug: 5182291
Change-Id: I6c1ec0c4dd0f96902be89a0ad230dd2264a0dade
This commit is contained in:
Tadashi G. Takaoka 2011-09-20 11:09:42 +09:00
parent a35ea4cba8
commit 40fd76faf2
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@
<resources> <resources>
<string-array name="sudden_jumping_touch_event_device_list" translatable="false"> <string-array name="sudden_jumping_touch_event_device_list" translatable="false">
<!-- Nexus One --> <!-- Nexus One -->
<item>passion</item> <item>mahimahi</item>
<!-- Droid --> <!-- Droid -->
<item>sholes</item> <item>sholes</item>
</string-array> </string-array>

View file

@ -51,7 +51,7 @@ public class SuddenJumpingTouchEventHandler {
mView = view; mView = view;
final String[] deviceList = context.getResources().getStringArray( final String[] deviceList = context.getResources().getStringArray(
R.array.sudden_jumping_touch_event_device_list); R.array.sudden_jumping_touch_event_device_list);
mNeedsSuddenJumpingHack = needsSuddenJumpingHack(Build.DEVICE, deviceList); mNeedsSuddenJumpingHack = needsSuddenJumpingHack(Build.HARDWARE, deviceList);
} }
private static boolean needsSuddenJumpingHack(String deviceName, String[] deviceList) { private static boolean needsSuddenJumpingHack(String deviceName, String[] deviceList) {