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

Commit cedcd281 authored by Rubin Xu's avatar Rubin Xu
Browse files

Initialize mTiles before constructing AutoTileManager

Bug: 22682394
Change-Id: Ida41d3757b0732a01e9ede92ec8c5d2f8426c6b0
parent 6bdd7cab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -147,8 +147,9 @@ public final class QSTileHost implements QSTile.Host, Tunable {

        mServices = new TileServices(this, mLooper);

        mAutoTiles = new AutoTileManager(context, this);
        TunerService.get(mContext).addTunable(this, TILES_SETTING);
        // AutoTileManager can modify mTiles so make sure mTiles has already been initialized.
        mAutoTiles = new AutoTileManager(context, this);
    }

    public void setHeaderView(View view) {