Merge "Update bottom area alpha when stack height changes" into mnc-dev

This commit is contained in:
Xiyuan Xia
2015-04-29 15:46:23 +00:00
committed by Android (Google) Code Review

View File

@@ -327,7 +327,7 @@ public class NotificationPanelView extends PanelView implements
} else if (!mQsExpanded) {
setQsExpansion(mQsMinExpansionHeight + mLastOverscroll);
}
mNotificationStackScroller.setStackHeight(getExpandedHeight());
updateStackHeight(getExpandedHeight());
updateHeader();
mNotificationStackScroller.updateIsSmallScreen(
mHeader.getCollapsedHeight() + mQsPeekHeight);
@@ -1457,7 +1457,7 @@ public class NotificationPanelView extends PanelView implements
setQsExpansion(mQsMinExpansionHeight
+ t * (getTempQsMaxExpansion() - mQsMinExpansionHeight));
}
mNotificationStackScroller.setStackHeight(expandedHeight);
updateStackHeight(expandedHeight);
updateHeader();
updateUnlockIcon();
updateNotificationTranslucency();
@@ -2234,4 +2234,9 @@ public class NotificationPanelView extends PanelView implements
mScrollView.setTranslationX(translation);
mHeader.setTranslationX(translation);
}
private void updateStackHeight(float stackHeight) {
mNotificationStackScroller.setStackHeight(stackHeight);
updateKeyguardBottomAreaAlpha();
}
}