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

Commit de6fbd02 authored by Unpublished's avatar Unpublished Committed by Michael Bestas
Browse files

livedisplay: Allow tile creation before boot completed phase [2/2]

Change-Id: Ibef44d4e07da9baf296796515288c9d42aba8608
parent 3b1e7fb4
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -73,10 +73,14 @@ public class LiveDisplayTile extends QSTile<LiveDisplayTile.LiveDisplayState> {
        updateEntries();

        mLiveDisplay = LiveDisplayManager.getInstance(mContext);
        if (mLiveDisplay.getConfig() != null) {
            mOutdoorModeAvailable = mLiveDisplay.getConfig().hasFeature(MODE_OUTDOOR) &&
                    !mLiveDisplay.getConfig().hasFeature(FEATURE_MANAGED_OUTDOOR_MODE);

            mDayTemperature = mLiveDisplay.getDayColorTemperature();
        } else {
            mOutdoorModeAvailable = false;
            mDayTemperature = -1;
        }

        mObserver = new LiveDisplayObserver(mHandler);
        mObserver.startObserving();