Merge "Shortcut key is enabled on the no language keyoard"
commit
aeae68479d
|
@ -194,12 +194,11 @@ public final class KeyboardLayoutSet {
|
||||||
final Params params = mParams;
|
final Params params = mParams;
|
||||||
final boolean isSymbols = (keyboardLayoutSetElementId == KeyboardId.ELEMENT_SYMBOLS
|
final boolean isSymbols = (keyboardLayoutSetElementId == KeyboardId.ELEMENT_SYMBOLS
|
||||||
|| keyboardLayoutSetElementId == KeyboardId.ELEMENT_SYMBOLS_SHIFTED);
|
|| keyboardLayoutSetElementId == KeyboardId.ELEMENT_SYMBOLS_SHIFTED);
|
||||||
final boolean noLanguage = SubtypeLocale.isNoLanguage(params.mSubtype);
|
final boolean hasShortcutKey = params.mVoiceKeyEnabled
|
||||||
final boolean voiceKeyEnabled = params.mVoiceKeyEnabled && !noLanguage;
|
&& (isSymbols != params.mVoiceKeyOnMain);
|
||||||
final boolean hasShortcutKey = voiceKeyEnabled && (isSymbols != params.mVoiceKeyOnMain);
|
|
||||||
return new KeyboardId(keyboardLayoutSetElementId, params.mSubtype, params.mDeviceFormFactor,
|
return new KeyboardId(keyboardLayoutSetElementId, params.mSubtype, params.mDeviceFormFactor,
|
||||||
params.mOrientation, params.mWidth, params.mMode, params.mEditorInfo,
|
params.mOrientation, params.mWidth, params.mMode, params.mEditorInfo,
|
||||||
params.mNoSettingsKey, voiceKeyEnabled, hasShortcutKey,
|
params.mNoSettingsKey, params.mVoiceKeyEnabled, hasShortcutKey,
|
||||||
params.mLanguageSwitchKeyEnabled);
|
params.mLanguageSwitchKeyEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue