Fix NPE
Bug: 5086698 Change-Id: Iaa3082649344722bd643c49c9d151df754d6e337
This commit is contained in:
parent
60ccbe16ee
commit
0a5345c7b6
1 changed files with 1 additions and 0 deletions
|
@ -674,6 +674,7 @@ public class PointerTracker {
|
||||||
|
|
||||||
private void startLongPressTimer(int keyIndex) {
|
private void startLongPressTimer(int keyIndex) {
|
||||||
Key key = getKey(keyIndex);
|
Key key = getKey(keyIndex);
|
||||||
|
if (key == null) return;
|
||||||
if (key.mCode == Keyboard.CODE_SHIFT) {
|
if (key.mCode == Keyboard.CODE_SHIFT) {
|
||||||
if (sLongPressShiftKeyTimeout > 0) {
|
if (sLongPressShiftKeyTimeout > 0) {
|
||||||
mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this);
|
mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this);
|
||||||
|
|
Loading…
Reference in a new issue