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

Commit eff15609 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix bootloop issue with UsageStatsService." into qt-qpr1-dev

parents 00386d79 5d9031db
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -1222,7 +1222,15 @@ public final class Configuration implements Parcelable, Comparable<Configuration
                                                        .setVariant(variant)
                                                        .setVariant(variant)
                                                        .setScript(script)
                                                        .setScript(script)
                                                        .build();
                                                        .build();
                                // Log a WTF here if a repeated locale is found to avoid throwing an
                                // exception in system server when LocaleList is created below
                                final int inListIndex = list.indexOf(locale);
                                if (inListIndex != -1) {
                                    Slog.wtf(TAG, "Repeated locale (" + list.get(inListIndex) + ")"
                                            + " found when trying to add: " + locale.toString());
                                } else {
                                    list.add(locale);
                                    list.add(locale);
                                }
                            } catch (IllformedLocaleException e) {
                            } catch (IllformedLocaleException e) {
                                Slog.e(TAG, "readFromProto error building locale with: "
                                Slog.e(TAG, "readFromProto error building locale with: "
                                        + "language-" + language + ";country-" + country
                                        + "language-" + language + ";country-" + country