From 5f8e731f18c5cbfd345236c691db0b09aceb7c5d Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Thu, 10 Dec 2015 00:58:55 -0800 Subject: [PATCH] Remove unnecessary parameter that is always true. This is a mechanical refactoring that removes an unnecessary parameter that is always specified to 'true'. No behavior change is intended. Bug: 22859862 Change-Id: If3aef8209a355af1432ca2600bcc3a0027a6c24c --- .../inputmethod/InputMethodSubtypeSwitchingController.java | 10 +++++----- .../java/com/android/server/InputMethodManagerService.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/java/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController.java b/core/java/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController.java index e607a3ff9ad0..b3e584e98d5a 100644 --- a/core/java/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController.java +++ b/core/java/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController.java @@ -193,11 +193,11 @@ public class InputMethodSubtypeSwitchingController { }); public List getSortedInputMethodAndSubtypeList() { - return getSortedInputMethodAndSubtypeList(true, false, false); + return getSortedInputMethodAndSubtypeList(false, false); } public List getSortedInputMethodAndSubtypeList( - boolean showSubtypes, boolean includeAuxiliarySubtypes, boolean isScreenLocked) { + boolean includeAuxiliarySubtypes, boolean isScreenLocked) { final ArrayList imList = new ArrayList(); final HashMap> immis = @@ -224,7 +224,7 @@ public class InputMethodSubtypeSwitchingController { enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); } final CharSequence imeLabel = imi.loadLabel(mPm); - if (showSubtypes && enabledSubtypeSet.size() > 0) { + if (enabledSubtypeSet.size() > 0) { final int subtypeCount = imi.getSubtypeCount(); if (DEBUG) { Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); @@ -546,10 +546,10 @@ public class InputMethodSubtypeSwitchingController { return mController.getNextInputMethod(onlyCurrentIme, imi, subtype); } - public List getSortedInputMethodAndSubtypeListLocked(boolean showSubtypes, + public List getSortedInputMethodAndSubtypeListLocked( boolean includingAuxiliarySubtypes, boolean isScreenLocked) { return mSubtypeList.getSortedInputMethodAndSubtypeList( - showSubtypes, includingAuxiliarySubtypes, isScreenLocked); + includingAuxiliarySubtypes, isScreenLocked); } public void dump(final Printer pw) { diff --git a/services/core/java/com/android/server/InputMethodManagerService.java b/services/core/java/com/android/server/InputMethodManagerService.java index 45c1ed224d49..1fe5d71d3d58 100644 --- a/services/core/java/com/android/server/InputMethodManagerService.java +++ b/services/core/java/com/android/server/InputMethodManagerService.java @@ -3027,7 +3027,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub final List imList = mSwitchingController.getSortedInputMethodAndSubtypeListLocked( - true /* showSubtypes */, showAuxSubtypes, isScreenLocked); + showAuxSubtypes, isScreenLocked); if (lastInputMethodSubtypeId == NOT_A_SUBTYPE_ID) { final InputMethodSubtype currentSubtype = getCurrentInputMethodSubtypeLocked(); -- 2.11.0