Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/FooterView.java +9 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.view.View; import com.android.systemui.R; import com.android.systemui.statusbar.notification.stack.ExpandableViewState; import com.android.systemui.statusbar.notification.stack.ViewState; public class FooterView extends StackScrollerDecorView { private final int mClearAllTopPadding; Loading Loading @@ -121,6 +122,14 @@ public class FooterView extends StackScrollerDecorView { */ public boolean hideContent; @Override public void copyFrom(ViewState viewState) { super.copyFrom(viewState); if (viewState instanceof FooterViewState) { hideContent = ((FooterViewState) viewState).hideContent; } } @Override public void applyToView(View view) { super.applyToView(view); Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +9 −6 Original line number Diff line number Diff line Loading @@ -399,12 +399,15 @@ public class StackScrollAlgorithm { if (view instanceof FooterView) { final boolean shadeClosed = !ambientState.isShadeExpanded(); final boolean isShelfShowing = algorithmState.firstViewInShelf != null; if (shadeClosed) { viewState.hidden = true; } else { final float footerEnd = algorithmState.mCurrentExpandedYPosition + view.getIntrinsicHeight(); final boolean noSpaceForFooter = footerEnd > ambientState.getStackEndHeight(); ((FooterView.FooterViewState) viewState).hideContent = shadeClosed || isShelfShowing || noSpaceForFooter; isShelfShowing || noSpaceForFooter; } } else { if (view != ambientState.getTrackedHeadsUpRow()) { if (ambientState.isExpansionChanging()) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/FooterView.java +9 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.view.View; import com.android.systemui.R; import com.android.systemui.statusbar.notification.stack.ExpandableViewState; import com.android.systemui.statusbar.notification.stack.ViewState; public class FooterView extends StackScrollerDecorView { private final int mClearAllTopPadding; Loading Loading @@ -121,6 +122,14 @@ public class FooterView extends StackScrollerDecorView { */ public boolean hideContent; @Override public void copyFrom(ViewState viewState) { super.copyFrom(viewState); if (viewState instanceof FooterViewState) { hideContent = ((FooterViewState) viewState).hideContent; } } @Override public void applyToView(View view) { super.applyToView(view); Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +9 −6 Original line number Diff line number Diff line Loading @@ -399,12 +399,15 @@ public class StackScrollAlgorithm { if (view instanceof FooterView) { final boolean shadeClosed = !ambientState.isShadeExpanded(); final boolean isShelfShowing = algorithmState.firstViewInShelf != null; if (shadeClosed) { viewState.hidden = true; } else { final float footerEnd = algorithmState.mCurrentExpandedYPosition + view.getIntrinsicHeight(); final boolean noSpaceForFooter = footerEnd > ambientState.getStackEndHeight(); ((FooterView.FooterViewState) viewState).hideContent = shadeClosed || isShelfShowing || noSpaceForFooter; isShelfShowing || noSpaceForFooter; } } else { if (view != ambientState.getTrackedHeadsUpRow()) { if (ambientState.isExpansionChanging()) { Loading