mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 08:20:15 +00:00
move hasShortcutIme check to inputAttributes
This commit is contained in:
parent
7fdb5954d0
commit
9ccea3940c
2 changed files with 3 additions and 2 deletions
|
@ -112,7 +112,8 @@ public final class InputAttributes {
|
|||
final boolean noMicrophone = mIsPasswordField
|
||||
|| InputTypeUtils.isEmailVariation(variation)
|
||||
|| InputType.TYPE_TEXT_VARIATION_URI == variation
|
||||
|| hasNoMicrophoneKeyOption();
|
||||
|| hasNoMicrophoneKeyOption()
|
||||
|| !RichInputMethodManager.getInstance().hasShortcutIme();
|
||||
mShouldShowVoiceInputKey = !noMicrophone;
|
||||
|
||||
mDisableGestureFloatingPreviewText = InputAttributes.inPrivateImeOptions(
|
||||
|
|
|
@ -149,7 +149,7 @@ public class SettingsValues {
|
|||
mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res);
|
||||
mSlidingKeyInputPreviewEnabled = prefs.getBoolean(
|
||||
DebugSettings.PREF_SLIDING_KEY_INPUT_PREVIEW, true);
|
||||
mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) && mInputAttributes.mShouldShowVoiceInputKey && RichInputMethodManager.getInstance().hasShortcutIme();
|
||||
mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) && mInputAttributes.mShouldShowVoiceInputKey;
|
||||
mIncludesOtherImesInLanguageSwitchList = !Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS || prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) /* forcibly */;
|
||||
mShowsNumberRow = prefs.getBoolean(Settings.PREF_SHOW_NUMBER_ROW, false);
|
||||
mShowsHints = prefs.getBoolean(Settings.PREF_SHOW_HINTS, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue