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

Commit 3acaf99f authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

SystemUI: Avoid unnecessary keyguard indication controller recreation

This basically prevents us from running into situation where there are
two controllers running in the background.

Change-Id: I13781e3dd6cb3c2f75efad77fed214bae8d9be87
parent 6edca60f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -304,10 +304,12 @@ public class KeyguardIndicationController {
            R.id.keyguard_indication_text_bottom);
        mInitialTextColorState = mTopIndicationView != null
                ? mTopIndicationView.getTextColors() : ColorStateList.valueOf(Color.WHITE);
        if (mRotateTextViewController == null || !mRotateTextViewController.isAttachedToWindow()) {
            mRotateTextViewController = new KeyguardIndicationRotateTextViewController(
                mLockScreenIndicationView,
                mExecutor,
                mStatusBarStateController);
        }
        updateDeviceEntryIndication(false /* animate */);
        updateOrganizedOwnedDevice();
        if (mBroadcastReceiver == null) {