Fix a NPE in InputMethodManagerCompatWrapper
Change-Id: Ia7c9b7135ba38a8df29464f7776b51d412f71acb
This commit is contained in:
parent
9115dd2723
commit
cf383a8175
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ public class InputMethodManagerCompatWrapper {
|
|||
InputMethodInfoCompatWrapper imi, boolean allowsImplicitlySelectedSubtypes) {
|
||||
Object retval = CompatUtils.invoke(mImm, null, METHOD_getEnabledInputMethodSubtypeList,
|
||||
(imi != null ? imi.getInputMethodInfo() : null), allowsImplicitlySelectedSubtypes);
|
||||
// Returns an empty list
|
||||
if (retval == null)
|
||||
return Collections.emptyList();
|
||||
return CompatUtils.copyInputMethodSubtypeListToWrapper((List<?>)retval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue