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

Commit f26426c7 authored by Felix Stern's avatar Felix Stern
Browse files

Fix NPE in InputMethodManagerService#resetDefaultImeLocked

Change-Id: I254153a2743b122e2120cf9c383597108f759f4b
Fix: 379402980
Flag: EXEMPT bugfix
parent 6c99a727
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1310,7 +1310,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        // Do not reset the default (current) IME when it is a 3rd-party IME
        String selectedMethodId = bindingController.getSelectedMethodId();
        final InputMethodSettings settings = InputMethodSettingsRepository.get(userId);
        if (selectedMethodId != null
        if (selectedMethodId != null && settings.getMethodMap().get(selectedMethodId) != null
                && !settings.getMethodMap().get(selectedMethodId).isSystem()) {
            return;
        }