From b764d7a5c625ce580f034d93f6489e49da48c906 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Fri, 4 Jun 2021 15:33:25 -0400 Subject: [PATCH] Make the header invisible when customizing That way, the accessibility service won't try to announce its content. Test: manual with TB Fixes: 189390981 Change-Id: I346af22423627e828456a6d2fa90ca77f1b22d7b --- .../SystemUI/src/com/android/systemui/qs/QSFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java index 1c5fa439d0ee5..e1a66b2c07ee5 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java @@ -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();