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

Commit 80cb9bcf authored by Jim Miller's avatar Jim Miller
Browse files

Don't set up external displays from binder thread

This fixes a bug where keyguard was attempting to set up
external presentation displays from the binder thread instead
of the UI thread.  Bad dog.

Fixes bug 11676486

Change-Id: Iadbe485691acc56a41b23219fe399f7eda40cb7c
parent a951fa56
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -614,8 +614,15 @@ public class KeyguardViewMediator {
            }
        }
        KeyguardUpdateMonitor.getInstance(mContext).dispatchScreenTurndOff(why);

        // This needs to run on the UI thread
        mHandler.post(new Runnable() {
            @Override
            public void run() {
                mKeyguardDisplayManager.show();
            }
        });
    }

    private void doKeyguardLaterLocked() {
        // if the screen turned off because of timeout or the user hit the power button