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

Commit 0ff647b0 authored by satok's avatar satok
Browse files

Add a cancel button to InputMethodPicker and InputMethodSubtypePicker

Change-Id: Ia64b9716c18da5a541c7fc04a507541d2ab952da
parent 26b29d1b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1694,6 +1694,12 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                            }
                        });
            }
            mDialogBuilder.setNegativeButton(com.android.internal.R.string.cancel,
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int whichButton) {
                            hideInputMethodMenu();
                        }
                    });
            mSwitchingDialog = mDialogBuilder.create();
            mSwitchingDialog.getWindow().setType(
                    WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG);