am 2222a508
: Merge "Fix problem where PhoneWindowManager waits for keyguard to draw" into klp-dev
* commit '2222a508e7a1ae963ac1891c555f9add10e571af': Fix problem where PhoneWindowManager waits for keyguard to draw
This commit is contained in:
@ -431,7 +431,18 @@ public class KeyguardViewManager {
|
||||
public synchronized void onScreenTurnedOn(final IKeyguardShowCallback callback) {
|
||||
if (DEBUG) Log.d(TAG, "onScreenTurnedOn()");
|
||||
mScreenOn = true;
|
||||
final IBinder token = mKeyguardHost == null ? null : mKeyguardHost.getWindowToken();
|
||||
final IBinder token;
|
||||
|
||||
// If keyguard is disabled, we need to inform PhoneWindowManager with a null
|
||||
// token so it doesn't wait for us to draw...
|
||||
final boolean disabled =
|
||||
mLockPatternUtils.isLockScreenDisabled() && !mLockPatternUtils.isSecure();
|
||||
if (mKeyguardHost == null || disabled) {
|
||||
token = null;
|
||||
} else {
|
||||
token = mKeyguardHost.getWindowToken();
|
||||
}
|
||||
|
||||
if (mKeyguardView != null) {
|
||||
mKeyguardView.onScreenTurnedOn();
|
||||
|
||||
|
Reference in New Issue
Block a user