Merge "Fix shade over occluded activity" into tm-qpr-dev am: b528579107
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20552468 Change-Id: I2cf091af412674fb33b927b2605dcfa77d548190 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -469,6 +469,9 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
// Don't expand to the bouncer. Instead transition back to the lock screen (see
|
// Don't expand to the bouncer. Instead transition back to the lock screen (see
|
||||||
// CentralSurfaces#showBouncerOrLockScreenIfKeyguard)
|
// CentralSurfaces#showBouncerOrLockScreenIfKeyguard)
|
||||||
return;
|
return;
|
||||||
|
} else if (mKeyguardStateController.isOccluded()
|
||||||
|
&& !mDreamOverlayStateController.isOverlayActive()) {
|
||||||
|
return;
|
||||||
} else if (needsFullscreenBouncer()) {
|
} else if (needsFullscreenBouncer()) {
|
||||||
if (mPrimaryBouncer != null) {
|
if (mPrimaryBouncer != null) {
|
||||||
mPrimaryBouncer.setExpansion(KeyguardBouncer.EXPANSION_VISIBLE);
|
mPrimaryBouncer.setExpansion(KeyguardBouncer.EXPANSION_VISIBLE);
|
||||||
|
|||||||
@@ -306,6 +306,17 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase {
|
|||||||
verify(mPrimaryBouncer, never()).setExpansion(anyFloat());
|
verify(mPrimaryBouncer, never()).setExpansion(anyFloat());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void onPanelExpansionChanged_neverTranslatesBouncerWhenOccluded() {
|
||||||
|
when(mKeyguardStateController.isOccluded()).thenReturn(true);
|
||||||
|
mStatusBarKeyguardViewManager.onPanelExpansionChanged(
|
||||||
|
expansionEvent(
|
||||||
|
/* fraction= */ KeyguardBouncer.EXPANSION_VISIBLE,
|
||||||
|
/* expanded= */ true,
|
||||||
|
/* tracking= */ false));
|
||||||
|
verify(mPrimaryBouncer, never()).setExpansion(anyFloat());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void onPanelExpansionChanged_neverTranslatesBouncerWhenShowBouncer() {
|
public void onPanelExpansionChanged_neverTranslatesBouncerWhenShowBouncer() {
|
||||||
// Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, if the unlock is dismissing
|
// Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, if the unlock is dismissing
|
||||||
|
|||||||
Reference in New Issue
Block a user