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

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

Merge "Always use Context.getSystemService() to get IMM in SysUI"

parents a45a4aec 35887743
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -586,7 +586,8 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
            final InputConnection inputConnection = super.onCreateInputConnection(outAttrs);
            final InputConnection inputConnection = super.onCreateInputConnection(outAttrs);


            if (mShowImeOnInputConnection && inputConnection != null) {
            if (mShowImeOnInputConnection && inputConnection != null) {
                final InputMethodManager imm = InputMethodManager.getInstance();
                final InputMethodManager imm =
                        getContext().getSystemService(InputMethodManager.class);
                if (imm != null) {
                if (imm != null) {
                    // onCreateInputConnection is called by InputMethodManager in the middle of
                    // onCreateInputConnection is called by InputMethodManager in the middle of
                    // setting up the connection to the IME; wait with requesting the IME until that
                    // setting up the connection to the IME; wait with requesting the IME until that