Merge "Fix notifications z-height when they don't have shadows." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
824fa2d2f1
@@ -2052,8 +2052,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
mNotificationLaunchHeight,
|
||||
zProgress);
|
||||
setTranslationZ(translationZ);
|
||||
float extraWidthForClipping = params.getWidth() - getWidth()
|
||||
+ MathUtils.lerp(0, mOutlineRadius * 2, params.getProgress());
|
||||
float extraWidthForClipping = params.getWidth() - getWidth();
|
||||
setExtraWidthForClipping(extraWidthForClipping);
|
||||
int top = params.getTop();
|
||||
float interpolation = Interpolators.FAST_OUT_SLOW_IN.getInterpolation(params.getProgress());
|
||||
|
||||
@@ -133,7 +133,7 @@ public class AmbientState {
|
||||
*/
|
||||
public static int getNotificationLaunchHeight(Context context) {
|
||||
int zDistance = getZDistanceBetweenElements(context);
|
||||
return getBaseHeight(zDistance) * 2;
|
||||
return NOTIFICATIONS_HAVE_SHADOWS ? 2 * getBaseHeight(zDistance) : 4 * zDistance;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user