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

Commit 92bee058 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by android-build-merger
Browse files

Merge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev am: 15e2d7e5

am: e0047318

Change-Id: I95804c928e0baced524d1d8f75bed1fae68e7568
parents 752efb11 e0047318
Loading
Loading
Loading
Loading
+9 −3
Original line number Original line Diff line number Diff line
@@ -1523,6 +1523,8 @@ public class StatusBar extends SystemUI implements DemoMode,


    @Override  // UnlockMethodCache.OnUnlockMethodChangedListener
    @Override  // UnlockMethodCache.OnUnlockMethodChangedListener
    public void onUnlockMethodStateChanged() {
    public void onUnlockMethodStateChanged() {
        // Unlock method state changed. Notify KeguardMonitor
        updateKeyguardState();
        logStateToEventlog();
        logStateToEventlog();
    }
    }


@@ -3419,9 +3421,7 @@ public class StatusBar extends SystemUI implements DemoMode,
        checkBarModes();
        checkBarModes();
        updateScrimController();
        updateScrimController();
        mPresenter.updateMediaMetaData(false, mState != StatusBarState.KEYGUARD);
        mPresenter.updateMediaMetaData(false, mState != StatusBarState.KEYGUARD);
        mKeyguardMonitor.notifyKeyguardState(mStatusBarKeyguardViewManager.isShowing(),
        updateKeyguardState();
                mUnlockMethodCache.isMethodSecure(),
                mStatusBarKeyguardViewManager.isOccluded());
        Trace.endSection();
        Trace.endSection();
    }
    }


@@ -3460,6 +3460,12 @@ public class StatusBar extends SystemUI implements DemoMode,
        mStatusBarStateController.setIsDozing(dozing);
        mStatusBarStateController.setIsDozing(dozing);
    }
    }


    private void updateKeyguardState() {
        mKeyguardMonitor.notifyKeyguardState(mStatusBarKeyguardViewManager.isShowing(),
                mUnlockMethodCache.isMethodSecure(),
                mStatusBarKeyguardViewManager.isOccluded());
    }

    public void onActivationReset() {
    public void onActivationReset() {
        mKeyguardIndicationController.hideTransientIndication();
        mKeyguardIndicationController.hideTransientIndication();
    }
    }