From 069dffdf27031e10ebd437d04924a07add71d9de Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Fri, 29 Oct 2010 16:30:24 -0400 Subject: [PATCH] Quick fix for status bar crash. Bug: 3147743 Change-Id: I0fb06b04f234b9d34349f65fede8f74b24eae988 --- .../android/systemui/statusbar/tablet/InputMethodButton.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java index c52bd4da16f7e..76acd2c43db43 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java @@ -127,7 +127,9 @@ public class InputMethodButton extends ImageView { } private void postRefreshStatusIcon() { - getHandler().post(new Runnable() { + Handler h = getHandler(); + if (h == null) return; + h.post(new Runnable() { public void run() { refreshStatusIcon(mKeyboardShown); }