Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3763c709 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix QS panel after density changes" into nyc-dev

am: b01a0afb

* commit 'b01a0afb':
  Fix QS panel after density changes

Change-Id: I596957cda3af9111516de298da08b30ce47fa858
parents c3378265 b01a0afb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -119,12 +119,18 @@ public class QSPanel extends LinearLayout implements Tunable, Callback {
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        TunerService.get(mContext).addTunable(this, QS_SHOW_BRIGHTNESS);
        if (mHost != null) {
            setTiles(mHost.getTiles());
        }
    }

    @Override
    protected void onDetachedFromWindow() {
        TunerService.get(mContext).removeTunable(this);
        mHost.removeCallback(this);
        for (TileRecord record : mRecords) {
            record.tile.removeCallbacks();
        }
        super.onDetachedFromWindow();
    }