Remove unused variable from PhoneWindowManager

This variable is always false. Remove it.

Bug: 163073386
Test: compile only
Change-Id: Ia45ba9628e255ecbf5710cbf1f1a7dfb9373d346
This commit is contained in:
Siarhei Vishniakou
2020-08-07 19:52:29 -05:00
parent 637d43d6c2
commit bc3c59f740

View File

@@ -450,7 +450,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
volatile int mPendingWakeKey = PENDING_KEY_NULL;
int mRecentAppsHeldModifiers;
boolean mLanguageSwitchKeyPressed;
int mCameraLensCoverState = CAMERA_LENS_COVER_ABSENT;
boolean mHaveBuiltInKeyboard;
@@ -2938,12 +2937,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
mWindowManagerFuncs.switchKeyboardLayout(event.getDeviceId(), direction);
return -1;
}
if (mLanguageSwitchKeyPressed && !down
&& (keyCode == KeyEvent.KEYCODE_LANGUAGE_SWITCH
|| keyCode == KeyEvent.KEYCODE_SPACE)) {
mLanguageSwitchKeyPressed = false;
return -1;
}
if (isValidGlobalKey(keyCode)
&& mGlobalKeyManager.handleGlobalKey(mContext, keyCode, event)) {