Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ca50c13 authored by Shu Chen's avatar Shu Chen Committed by Automerger Merge Worker
Browse files

Merge "Fix the NPE in InputMethodSubtype#setSubtypeNameOverride." into udc-dev am: 4b105fd9

parents 1437c3e8 4b105fd9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -286,7 +286,6 @@ final class AdditionalSubtypeUtils {
                    final InputMethodSubtype.InputMethodSubtypeBuilder
                            builder = new InputMethodSubtype.InputMethodSubtypeBuilder()
                            .setSubtypeNameResId(label)
                            .setSubtypeNameOverride(untranslatableName)
                            .setPhysicalKeyboardHint(
                                    pkLanguageTag == null ? null : new ULocale(pkLanguageTag),
                                    pkLayoutType == null ? "" : pkLayoutType)
@@ -302,6 +301,9 @@ final class AdditionalSubtypeUtils {
                    if (subtypeId != InputMethodSubtype.SUBTYPE_ID_NONE) {
                        builder.setSubtypeId(subtypeId);
                    }
                    if (untranslatableName != null) {
                        builder.setSubtypeNameOverride(untranslatableName);
                    }
                    tempSubtypesArray.add(builder.build());
                }
            }