Merge "Fix crash in KeyboardView with null Handler"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca4d8e9db4
@@ -1410,9 +1410,11 @@ public class KeyboardView extends View implements View.OnClickListener {
|
||||
}
|
||||
|
||||
private void removeMessages() {
|
||||
mHandler.removeMessages(MSG_REPEAT);
|
||||
mHandler.removeMessages(MSG_LONGPRESS);
|
||||
mHandler.removeMessages(MSG_SHOW_PREVIEW);
|
||||
if (mHandler != null) {
|
||||
mHandler.removeMessages(MSG_REPEAT);
|
||||
mHandler.removeMessages(MSG_LONGPRESS);
|
||||
mHandler.removeMessages(MSG_SHOW_PREVIEW);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user