From e398331ee09c6ee7ffcdfbb7c3244d235684827f Mon Sep 17 00:00:00 2001 From: phweiss Date: Fri, 17 Feb 2017 15:14:19 +0100 Subject: [PATCH] Remove Quicksettings footer in QuickQSPanel Before this cl, the footer was normally invisible, except if the user removed all tiles in quick settings, then it looks broken (see bug). Now the area is blank. Bug: b/35381410 Test: manually Change-Id: I104a46cfe396c7d44704505cebe41066d26866c4 --- .../SystemUI/src/com/android/systemui/qs/QuickQSPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java index d789b446c253a..c2c6f7a932fc2 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java @@ -49,6 +49,9 @@ public class QuickQSPanel extends QSPanel { public QuickQSPanel(Context context, AttributeSet attrs) { super(context, attrs); + if (mFooter != null) { + removeView((View) mFooter.getView()); + } if (mTileLayout != null) { for (int i = 0; i < mRecords.size(); i++) { mTileLayout.removeTile(mRecords.get(i));