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

Commit 0c9aa577 authored by Aaron Echols's avatar Aaron Echols Committed by Gerrit Code Review
Browse files

Add resource to disable the CM Phone IME selector method (2/2)

The CM IME selector is enabled along side the Android version on tablet devices,
creating duplicate IME selectors. This gives an easy option to disable the CM
IME selector as a resource value for tablet or similar devices.

Thanks to Mike Kasick for the much needed help. :)

Change-Id: I18b60209933350fb624f20307077664ac026bfea
parent 1dc211c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -894,6 +894,9 @@
    <!-- Workaround for devices with broken keyboards -->
    <bool name="config_forceDisableHardwareKeyboard">false</bool>

    <!-- Setting to false will disable CM's IME switcher implementation for tablets -->
    <bool name="config_show_cmIMESwitcher">true</bool>

    <!-- Flag indicating whether we should enable automatic brightness for
         the button and keyboard backlights. -->
    <bool name="config_autoBrightnessButtonKeyboard">true</bool>
+1 −0
Original line number Diff line number Diff line
@@ -264,6 +264,7 @@
  <java-symbol type="bool" name="config_useMasterVolume" />
  <java-symbol type="bool" name="config_enableWallpaperService" />
  <java-symbol type="bool" name="config_sendAudioBecomingNoisy" />
  <java-symbol type="bool" name="config_show_cmIMESwitcher"/>
  <java-symbol type="bool" name="config_enableScreenshotChord" />
  <java-symbol type="bool" name="config_bluetooth_default_profiles" />
  <java-symbol type="bool" name="config_wifiApFirmwareReload" />
+8 −2
Original line number Diff line number Diff line
@@ -1438,8 +1438,14 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            mCurMethodId = null;
            unbindCurrentMethodLocked(true);
        }
        // code to disable the CM Phone IME switcher with config_show_cmIMESwitcher set = false
        try {
            mShowOngoingImeSwitcherForPhones = Settings.System.getInt(mContext.getContentResolver(),
               Settings.System.STATUS_BAR_IME_SWITCHER, 1) == 1;
            Settings.System.STATUS_BAR_IME_SWITCHER) == 1;
        } catch (SettingNotFoundException e) {
            mShowOngoingImeSwitcherForPhones = mRes.getBoolean(
            com.android.internal.R.bool.config_show_cmIMESwitcher);
        }
    }

    /* package */ void setInputMethodLocked(String id, int subtypeId) {