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

Commit 18100137 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Update lockscreen message when user unlocked.

If a user doesn't have credentials, we start the unlock process
automatically, but that races with the UI binding process.  Fix by
rebinding the UI once we hear the user is unlocked.

Change-Id: Id678b97aa6120ba78088fb6cf4c2a65d129e98a3
Test: none
Bug: 30840626
parent 5a0bd229
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -93,8 +93,10 @@ public class KeyguardIndicationController {
                ServiceManager.getService(BatteryStats.SERVICE_NAME));

        KeyguardUpdateMonitor.getInstance(context).registerCallback(mUpdateMonitor);
        context.registerReceiverAsUser(mReceiver, UserHandle.SYSTEM,
        context.registerReceiverAsUser(mTickReceiver, UserHandle.SYSTEM,
                new IntentFilter(Intent.ACTION_TIME_TICK), null, null);
        context.registerReceiverAsUser(mUnlockReceiver, UserHandle.ALL,
                new IntentFilter(Intent.ACTION_USER_UNLOCKED), null, null);
    }

    public void setVisible(boolean visible) {
@@ -322,7 +324,16 @@ public class KeyguardIndicationController {
        }
    };

    BroadcastReceiver mReceiver = new BroadcastReceiver() {
    BroadcastReceiver mTickReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            if (mVisible) {
                updateIndication();
            }
        }
    };

    BroadcastReceiver mUnlockReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            if (mVisible) {