Merge "Remove refs to QSFragment" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-20 21:07:18 +00:00
committed by Android (Google) Code Review
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);
}