Merge "Fix shade not having a background when opened on an expanded bubble" into sc-dev am: a1306885b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14940867 Change-Id: If9635147f7635fe67c4c529439c91943e364ff9f
This commit is contained in:
@@ -640,7 +640,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
return;
|
||||
}
|
||||
|
||||
if (mState == ScrimState.UNLOCKED) {
|
||||
if (mState == ScrimState.UNLOCKED || mState == ScrimState.BUBBLE_EXPANDED) {
|
||||
// Darken scrim as you pull down the shade when unlocked, unless the shade is expanding
|
||||
// because we're doing the screen off animation.
|
||||
if (!mUnlockedScreenOffAnimationController.isScreenOffAnimationPlaying()) {
|
||||
@@ -655,12 +655,6 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
}
|
||||
mInFrontAlpha = 0;
|
||||
}
|
||||
} else if (mState == ScrimState.BUBBLE_EXPANDED) {
|
||||
// Darken scrim as you pull down the shade when unlocked
|
||||
float behindFraction = getInterpolatedFraction();
|
||||
behindFraction = (float) Math.pow(behindFraction, 0.8f);
|
||||
mBehindAlpha = behindFraction * mDefaultScrimAlpha;
|
||||
mInFrontAlpha = 0;
|
||||
} else if (mState == ScrimState.KEYGUARD || mState == ScrimState.SHADE_LOCKED
|
||||
|| mState == ScrimState.PULSING) {
|
||||
Pair<Integer, Float> result = calculateBackStateForState(mState);
|
||||
|
||||
Reference in New Issue
Block a user