Suppress a11y shortcut on emergency dialer
Suppressing whenever the keyguard is locked, not just when it's showing. This should reduce false triggering. Bug: 34820720 Test: Verfied that shortcut no longer activates on emergency dialer or lock screen. Change-Id: Ic43c11798f04217c2871efe7d0fa21dbf61fd953
This commit is contained in:
@@ -167,8 +167,10 @@ public final class WindowManagerGlobal {
|
||||
sWindowManagerService = IWindowManager.Stub.asInterface(
|
||||
ServiceManager.getService("window"));
|
||||
try {
|
||||
sWindowManagerService = getWindowManagerService();
|
||||
ValueAnimator.setDurationScale(sWindowManagerService.getCurrentAnimatorScale());
|
||||
if (sWindowManagerService != null) {
|
||||
ValueAnimator.setDurationScale(
|
||||
sWindowManagerService.getCurrentAnimatorScale());
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
@@ -5736,7 +5736,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mScreenshotChordVolumeDownKeyConsumed = false;
|
||||
cancelPendingPowerKeyAction();
|
||||
interceptScreenshotChord();
|
||||
if (!keyguardActive) {
|
||||
if (!isKeyguardLocked()) {
|
||||
interceptAccessibilityShortcutChord();
|
||||
}
|
||||
}
|
||||
@@ -5754,7 +5754,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mA11yShortcutChordVolumeUpKeyConsumed = false;
|
||||
cancelPendingPowerKeyAction();
|
||||
cancelPendingScreenshotChordAction();
|
||||
if (!keyguardActive) {
|
||||
if (!isKeyguardLocked()) {
|
||||
interceptAccessibilityShortcutChord();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user