Merge "Remove refs to QSFragment" into rvc-dev am: 03026df535 am: 69ba6656dd

Change-Id: I697369224a046555470ec2b34f049c566d1e9a61
This commit is contained in:
TreeHugger Robot
2020-05-20 21:46:45 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
if (mListening) {
setListening(false);
}
mQSCustomizer.setQs(null);
}
@Override

View File

@@ -361,9 +361,13 @@ public class QSPanel extends LinearLayout implements Tunable, Callback, Brightne
if (mHost != null) {
mHost.removeCallback(this);
}
if (mTileLayout != null) {
mTileLayout.setListening(false);
}
for (TileRecord record : mRecords) {
record.tile.removeCallbacks();
}
mRecords.clear();
if (mBrightnessMirrorController != null) {
mBrightnessMirrorController.removeCallback(this);
}