Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8634b4b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not show footer when shade is closed" into sc-dev am: 0e09a244

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14735999

Change-Id: I892afc015a173e56775847dc26679100a05bffd8
parents 6e717bdc 0e09a244
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)