Fix a few issues with occluded Keyguard

am: c5804af

* commit 'c5804afa73edbf229e789570d288e66f70b54fa2':
  Fix a few issues with occluded Keyguard

Change-Id: I0e805ee2b7cf37b60b08f951bf1e0e4fdde93464
This commit is contained in:
Jorim Jaggi
2016-04-26 03:28:31 +00:00
committed by android-build-merger
2 changed files with 13 additions and 1 deletions

View File

@@ -883,6 +883,10 @@ public abstract class PanelView extends FrameLayout {
new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
if (!mInstantExpanding) {
getViewTreeObserver().removeOnGlobalLayoutListener(this);
return;
}
if (mStatusBar.getStatusBarWindow().getHeight()
!= mStatusBar.getStatusBarHeight()) {
getViewTreeObserver().removeOnGlobalLayoutListener(this);
@@ -907,6 +911,10 @@ public abstract class PanelView extends FrameLayout {
if (mExpanding) {
notifyExpandingFinished();
}
if (mInstantExpanding) {
mInstantExpanding = false;
notifyBarPanelExpansionChanged();
}
}
private void abortAnimations() {

View File

@@ -4409,7 +4409,11 @@ public class WindowManagerService extends IWindowManager.Stub
if (wtoken.hidden || wtoken.mAppStopped) {
wtoken.allDrawn = false;
wtoken.deferClearAllDrawn = false;
wtoken.waitingToShow = true;
// If the app was already visible, don't reset the waitingToShow state.
if (wtoken.hidden) {
wtoken.waitingToShow = true;
}
if (wtoken.clientHidden) {
// In the case where we are making an app visible