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

Commit c42d3300 authored by Adrian Roos's avatar Adrian Roos
Browse files

Update security method after switching user

Bug: 15445037
Change-Id: If296dd3ab6510c335aba7ffdce5cdd923ceada6b
parent 965bba34
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 */);
        }
    };
}