Merge "Do not show footer when shade is closed" into sc-dev am: 0e09a24432 am: 89f765a927 am: 84c4094a6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14735999 Change-Id: I7dab6241b3e9f6a84846e6cfde0a28330cde67f7
This commit is contained in:
@@ -414,13 +414,15 @@ public class StackScrollAlgorithm {
|
||||
}
|
||||
|
||||
if (view instanceof FooterView) {
|
||||
final boolean shadeClosed = !ambientState.isShadeExpanded();
|
||||
final boolean isShelfShowing = algorithmState.firstViewInShelf != null;
|
||||
|
||||
final float footerEnd = algorithmState.mCurrentExpandedYPosition
|
||||
+ view.getIntrinsicHeight();
|
||||
final boolean noSpaceForFooter = footerEnd > ambientState.getStackEndHeight();
|
||||
|
||||
viewState.hidden = isShelfShowing || noSpaceForFooter;
|
||||
viewState.hidden = shadeClosed || isShelfShowing || noSpaceForFooter;
|
||||
|
||||
} else if (view != ambientState.getTrackedHeadsUpRow()) {
|
||||
if (ambientState.isExpansionChanging()) {
|
||||
// Show all views. Views below the shelf will later be clipped (essentially hidden)
|
||||
|
||||
Reference in New Issue
Block a user