Use Build.HARDWARE to determine "sudden jumping hack"

Bug: 5182291
Change-Id: I6c1ec0c4dd0f96902be89a0ad230dd2264a0dade
main
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>
<string-array name="sudden_jumping_touch_event_device_list" translatable="false">
<!-- Nexus One -->
<item>passion</item>
<item>mahimahi</item>
<!-- Droid -->
<item>sholes</item>
</string-array>

View File

@ -51,7 +51,7 @@ public class SuddenJumpingTouchEventHandler {
mView = view;
final String[] deviceList = context.getResources().getStringArray(
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) {