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

Commit 8ae0bfc0 authored by Allen Su's avatar Allen Su Committed by Android (Google) Code Review
Browse files

Merge "[Panlingual]Fix NPE in AppLocalePickerActivityTest"

parents 63ed2cd3 d7573df0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -120,11 +120,13 @@ public class AppLocaleCollector implements LocalePickerWithRegion.LocaleCollecto
        List<InputMethodInfo> infoList = imm.getEnabledInputMethodList();
        String imeId = Settings.Secure.getStringForUser(mContext.getContentResolver(),
                Settings.Secure.DEFAULT_INPUT_METHOD, mContext.getUserId());
        if (infoList != null && imeId != null) {
            for (InputMethodInfo method : infoList) {
                if (method.getId().equals(imeId)) {
                    activeIme = method;
                }
            }
        }
        return activeIme;
    }