From e6c51847426121246cc8b48f42f8f5668db71cdb Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 23 Jul 2013 11:03:18 +0900 Subject: Fix NPE in SubtypeLocale.getSubtypeDisplayName This change moves the methods that create the subtype display name for spacebar from MainKeyboardView to SubtypeLocale class, and consolidates SpacebarTextTests with SubtypeLocaleTests. Bug: 9962955 Change-Id: Ifa0a08ff80bc30753a213c2feb471599ca63fa66 --- java/src/com/android/inputmethod/latin/RichInputMethodManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/RichInputMethodManager.java') diff --git a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java index b09685886..56b1e3f61 100644 --- a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java +++ b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java @@ -134,7 +134,7 @@ public final class RichInputMethodManager { final int currentIndex = getSubtypeIndexInList(currentSubtype, enabledSubtypes); if (currentIndex == INDEX_NOT_FOUND) { Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype=" - + SubtypeLocale.getSubtypeDisplayName(currentSubtype)); + + SubtypeLocale.getSubtypeNameForLogging(currentSubtype)); return false; } final int nextIndex = (currentIndex + 1) % enabledSubtypes.size(); -- cgit v1.2.3-83-g751a