Merge "Make the header invisible when customizing" into sc-dev am: f99de68576

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

Change-Id: I3aaaf356e002ef007db7269f01027e8b44b732e0
This commit is contained in:
Fabian Kozynski
2021-06-07 15:10:15 +00:00
committed by Automerger Merge Worker

View File

@@ -615,10 +615,10 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
public void notifyCustomizeChanged() {
// The customize state changed, so our height changed.
mContainer.updateExpansion();
mQSPanelScrollView.setVisibility(!mQSCustomizerController.isCustomizing() ? View.VISIBLE
: View.INVISIBLE);
mFooter.setVisibility(
!mQSCustomizerController.isCustomizing() ? View.VISIBLE : View.INVISIBLE);
boolean customizing = isCustomizing();
mQSPanelScrollView.setVisibility(!customizing ? View.VISIBLE : View.INVISIBLE);
mFooter.setVisibility(!customizing ? View.VISIBLE : View.INVISIBLE);
mHeader.setVisibility(!customizing ? View.VISIBLE : View.INVISIBLE);
// Let the panel know the position changed and it needs to update where notifications
// and whatnot are.
mPanelView.onQsHeightChanged();