Use Build.HARDWARE to determine "sudden jumping hack"
Bug: 5182291 Change-Id: I6c1ec0c4dd0f96902be89a0ad230dd2264a0dademain
parent
a35ea4cba8
commit
40fd76faf2
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue