Fix NPE in AdditionalSubtypeSettings
Bug: 6384416 Change-Id: I878071b8b78acce51649f9637b59830ab681c696main
parent
fa1affbaec
commit
3e3bb36f1f
|
@ -366,6 +366,7 @@ public class AdditionalSubtypeSettings extends PreferenceFragment {
|
|||
final Preference pref = mSubtypePrefGroup.getPreference(i);
|
||||
if (pref instanceof SubtypePreference) {
|
||||
final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype();
|
||||
if (subtype == null) continue;
|
||||
if (sb.length() > 0) {
|
||||
sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue