From 0f3f40aaac2b2a8542cf1fa760ddd903de38453f Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Fri, 21 Jan 2022 07:44:18 -0800 Subject: [PATCH] Remove IMMS#MSG_SHOW_IM_CONFIG This message is no longer used. Hence we can safely remove it. Bug: 192412909 Test: presubmit Change-Id: I5456c1c053ea8df31ea7f165722130fbed45695b --- .../inputmethod/InputMethodManagerService.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index e36c9fb2be576..506e94b949b93 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -219,7 +219,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } private static final int MSG_SHOW_IM_SUBTYPE_PICKER = 1; - private static final int MSG_SHOW_IM_CONFIG = 3; private static final int MSG_HIDE_CURRENT_INPUT_METHOD = 1035; private static final int MSG_REMOVE_IME_SURFACE = 1060; @@ -4255,10 +4254,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub mMenuController.showInputMethodMenu(showAuxSubtypes, displayId); return true; - case MSG_SHOW_IM_CONFIG: - showConfigureInputMethods(); - return true; - // --------------------------------------------------------- case MSG_HIDE_CURRENT_INPUT_METHOD: @@ -4659,14 +4654,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub mContext.startActivityAsUser(intent, null, UserHandle.of(userId)); } - private void showConfigureInputMethods() { - Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK - | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED - | Intent.FLAG_ACTIVITY_CLEAR_TOP); - mContext.startActivityAsUser(intent, null, UserHandle.CURRENT); - } - // ---------------------------------------------------------------------- /**