Fix NPE on non-distict multitouch device
Change-Id: I6d8a05bf62e510d0556fa4831b3d510041cca63a
This commit is contained in:
parent
c5c57b506e
commit
d00d963b9d
1 changed files with 4 additions and 2 deletions
|
@ -459,6 +459,7 @@ public class PointerTracker {
|
||||||
keyboard.updateSpacebarPreviewIcon(diff);
|
keyboard.updateSpacebarPreviewIcon(diff);
|
||||||
// Display spacebar slide language switcher.
|
// Display spacebar slide language switcher.
|
||||||
showKeyPreview(keyIndex);
|
showKeyPreview(keyIndex);
|
||||||
|
if (queue != null)
|
||||||
queue.releaseAllPointersExcept(this, eventTime, true);
|
queue.releaseAllPointersExcept(this, eventTime, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -551,6 +552,7 @@ public class PointerTracker {
|
||||||
|
|
||||||
public void onLongPressed(PointerTrackerQueue queue) {
|
public void onLongPressed(PointerTrackerQueue queue) {
|
||||||
mKeyAlreadyProcessed = true;
|
mKeyAlreadyProcessed = true;
|
||||||
|
if (queue != null)
|
||||||
queue.remove(this);
|
queue.remove(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue