mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix NPE in AdditionalSubtypeSettings"
This commit is contained in:
commit
a500bba8ed
@ -366,6 +366,7 @@ public class AdditionalSubtypeSettings extends PreferenceFragment {
|
|||||||
final Preference pref = mSubtypePrefGroup.getPreference(i);
|
final Preference pref = mSubtypePrefGroup.getPreference(i);
|
||||||
if (pref instanceof SubtypePreference) {
|
if (pref instanceof SubtypePreference) {
|
||||||
final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype();
|
final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype();
|
||||||
|
if (subtype == null) continue;
|
||||||
if (sb.length() > 0) {
|
if (sb.length() > 0) {
|
||||||
sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR);
|
sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user