Skip launching Assistant application when cancel the Meta up event
Bug: 191497035 Test: Builds successfully and manually test Change-Id: Id24311daa1f677bbe3649c074a648c751d16cdca
This commit is contained in:
@@ -2798,9 +2798,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mInputManagerInternal.toggleCapsLock(event.getDeviceId());
|
||||
mPendingCapsLockToggle = false;
|
||||
} else if (mPendingMetaAction) {
|
||||
launchAssistAction(Intent.EXTRA_ASSIST_INPUT_HINT_KEYBOARD,
|
||||
event.getDeviceId(),
|
||||
event.getEventTime(), AssistUtils.INVOCATION_TYPE_UNKNOWN);
|
||||
if (!canceled) {
|
||||
launchAssistAction(Intent.EXTRA_ASSIST_INPUT_HINT_KEYBOARD,
|
||||
event.getDeviceId(),
|
||||
event.getEventTime(), AssistUtils.INVOCATION_TYPE_UNKNOWN);
|
||||
}
|
||||
mPendingMetaAction = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user