Gate footer actions visibility by QS visibility

With the change of the footer actions outside of QS panel, the visible
logic needs to account for this.

Test: log visibility of both footer actions and qs
Bug: 219883571
Change-Id: I30a6c66be088384d325945d0d45f2b7028ceb35c
This commit is contained in:
Fabian Kozynski
2022-02-16 13:37:36 -05:00
parent 849d7d30ef
commit fd12ca338f

View File

@@ -381,14 +381,17 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
: View.INVISIBLE);
mHeader.setExpanded((keyguardShowing && !mHeaderAnimating && !mShowCollapsedOnKeyguard)
|| (expanded && !mStackScrollerOverscrolling), mQuickQSPanelController);
boolean footerVisible = !mQsDisabled && (expanded || !keyguardShowing || mHeaderAnimating
boolean qsPanelVisible = !mQsDisabled && expandVisually;
boolean footerVisible = qsPanelVisible && (expanded || !keyguardShowing || mHeaderAnimating
|| mShowCollapsedOnKeyguard);
mFooter.setVisibility(footerVisible ? View.VISIBLE : View.INVISIBLE);
mQSFooterActionController.setVisible(footerVisible);
mFooter.setExpanded((keyguardShowing && !mHeaderAnimating && !mShowCollapsedOnKeyguard)
|| (expanded && !mStackScrollerOverscrolling));
mQSPanelController.setVisibility(
!mQsDisabled && expandVisually ? View.VISIBLE : View.INVISIBLE);
mQSPanelController.setVisibility(qsPanelVisible ? View.VISIBLE : View.INVISIBLE);
if (DEBUG) {
Log.d(TAG, "Footer: " + footerVisible + ", QS Panel: " + qsPanelVisible);
}
}
private boolean isKeyguardState() {