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

Commit 2643de55 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Update security method after switching user"

parents a5c15063 c42d3300
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ public class KeyguardSimpleHostView extends KeyguardViewBase {

    public KeyguardSimpleHostView(Context context, AttributeSet attrs) {
        super(context, attrs);
        KeyguardUpdateMonitor.getInstance(context).registerCallback(mUpdateCallback);
    }

    @Override
@@ -62,4 +63,10 @@ public class KeyguardSimpleHostView extends KeyguardViewBase {
        // TODO Auto-generated method stub
    }

    private KeyguardUpdateMonitorCallback mUpdateCallback = new KeyguardUpdateMonitorCallback() {
        @Override
        public void onUserSwitchComplete(int userId) {
            getSecurityContainer().showPrimarySecurityScreen(false /* turning off */);
        }
    };
}