Merge "Make Keyguard window focusable so that adb shell input command registers" into rvc-dev am: a5894a7958
Change-Id: Id2928c88cb91c8125ada44eaa9ee3c29c25c0d5c
This commit is contained in:
@@ -171,6 +171,7 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
||||
mKeyguardStateController.notifyKeyguardState(mShowing, /* occluded= */ false);
|
||||
mCarNavigationBarController.showAllKeyguardButtons(/* isSetUp= */ true);
|
||||
start();
|
||||
getOverlayViewGlobalStateController().setWindowFocusable(/* focusable= */ true);
|
||||
reset(/* hideBouncerWhenShowing= */ false);
|
||||
notifyKeyguardUpdateMonitor();
|
||||
}
|
||||
@@ -185,6 +186,7 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
||||
mBouncer.hide(/* destroyView= */ true);
|
||||
mCarNavigationBarController.hideAllKeyguardButtons(/* isSetUp= */ true);
|
||||
stop();
|
||||
getOverlayViewGlobalStateController().setWindowFocusable(/* focusable= */ false);
|
||||
mKeyguardStateController.notifyKeyguardDoneFading();
|
||||
mViewMediatorCallback.keyguardGone();
|
||||
notifyKeyguardUpdateMonitor();
|
||||
@@ -229,7 +231,9 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
||||
|
||||
@Override
|
||||
public void dismissAndCollapse() {
|
||||
hide(/* startTime= */ 0, /* fadeoutDuration= */ 0);
|
||||
if (!mBouncer.isSecure()) {
|
||||
hide(/* startTime= */ 0, /* fadeoutDuration= */ 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -241,7 +245,6 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
||||
|
||||
@Override
|
||||
public void setNeedsInput(boolean needsInput) {
|
||||
getOverlayViewGlobalStateController().setWindowFocusable(needsInput);
|
||||
getOverlayViewGlobalStateController().setWindowNeedsInput(needsInput);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user