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
This commit is contained in:
phweiss
2017-02-17 15:14:19 +01:00
committed by Philipp Weiß
parent bae3d7083f
commit e398331ee0

View File

@@ -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));