Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
927d854ff4
@ -211,7 +211,7 @@ interface IWindowManager
|
||||
/**
|
||||
* Called by the status bar to notify Views of changes to System UI visiblity.
|
||||
*/
|
||||
void statusBarVisibilityChanged(int visibility);
|
||||
oneway void statusBarVisibilityChanged(int visibility);
|
||||
|
||||
/**
|
||||
* Block until the given window has been drawn to the screen.
|
||||
|
@ -68,6 +68,8 @@ public class KeyguardService extends Service {
|
||||
}
|
||||
|
||||
private final IKeyguardService.Stub mBinder = new IKeyguardService.Stub() {
|
||||
private boolean mSetHiddenCalled;
|
||||
private boolean mIsHidden;
|
||||
public boolean isShowing() {
|
||||
return mKeyguardViewMediator.isShowing();
|
||||
}
|
||||
@ -89,7 +91,10 @@ public class KeyguardService extends Service {
|
||||
}
|
||||
public void setHidden(boolean isHidden) {
|
||||
checkPermission();
|
||||
if (mSetHiddenCalled && mIsHidden == isHidden) return;
|
||||
mKeyguardViewMediator.setHidden(isHidden);
|
||||
mSetHiddenCalled = true;
|
||||
mIsHidden = isHidden;
|
||||
}
|
||||
public void dismiss() {
|
||||
mKeyguardViewMediator.dismiss();
|
||||
|
Reference in New Issue
Block a user