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
This commit is contained in:
Jim Miller
2013-11-13 16:44:39 -08:00
parent a951fa56f1
commit 80cb9bcfc0

View File

@@ -614,7 +614,14 @@ public class KeyguardViewMediator {
}
}
KeyguardUpdateMonitor.getInstance(mContext).dispatchScreenTurndOff(why);
mKeyguardDisplayManager.show();
// This needs to run on the UI thread
mHandler.post(new Runnable() {
@Override
public void run() {
mKeyguardDisplayManager.show();
}
});
}
private void doKeyguardLaterLocked() {