Merge "Fixed a bug with the animation of the notification background" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5958b7c77b
@@ -2516,12 +2516,20 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int minTopPosition = 0;
|
int minTopPosition;
|
||||||
NotificationSection lastSection = getLastVisibleSection();
|
NotificationSection lastSection = getLastVisibleSection();
|
||||||
if (mStatusBarState != StatusBarState.KEYGUARD) {
|
if (mStatusBarState != StatusBarState.KEYGUARD) {
|
||||||
minTopPosition = (int) (mTopPadding + mStackTranslation);
|
minTopPosition = (int) (mTopPadding + mStackTranslation);
|
||||||
} else if (lastSection == null) {
|
} else if (lastSection == null) {
|
||||||
minTopPosition = mTopPadding;
|
minTopPosition = mTopPadding;
|
||||||
|
} else {
|
||||||
|
// The first sections could be empty while there could still be elements in later
|
||||||
|
// sections. The position of these first few sections is determined by the position of
|
||||||
|
// the first visible section.
|
||||||
|
NotificationSection firstVisibleSection = getFirstVisibleSection();
|
||||||
|
firstVisibleSection.updateBounds(0 /* minTopPosition*/, 0 /* minBottomPosition */,
|
||||||
|
false /* shiftPulsingWithFirst */);
|
||||||
|
minTopPosition = firstVisibleSection.getBounds().top;
|
||||||
}
|
}
|
||||||
boolean shiftPulsingWithFirst = mAmbientPulseManager.getAllEntries().count() <= 1;
|
boolean shiftPulsingWithFirst = mAmbientPulseManager.getAllEntries().count() <= 1;
|
||||||
for (NotificationSection section : mSections) {
|
for (NotificationSection section : mSections) {
|
||||||
|
|||||||
Reference in New Issue
Block a user