* commit '01011c3d7ce4f76c1a76b33a04fc63da784ddbea': Fix issue #6037252: Screen shifts after all apps are upgraded
This commit is contained in:
@@ -2217,13 +2217,21 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
"Laying out navigation bar window: (%d,%d - %d,%d)",
|
"Laying out navigation bar window: (%d,%d - %d,%d)",
|
||||||
pf.left, pf.top, pf.right, pf.bottom));
|
pf.left, pf.top, pf.right, pf.bottom));
|
||||||
}
|
}
|
||||||
} else if (attrs.type == TYPE_SECURE_SYSTEM_OVERLAY
|
} else if ((attrs.type == TYPE_SECURE_SYSTEM_OVERLAY
|
||||||
|
|| attrs.type == TYPE_BOOT_PROGRESS)
|
||||||
&& ((fl & FLAG_FULLSCREEN) != 0)) {
|
&& ((fl & FLAG_FULLSCREEN) != 0)) {
|
||||||
// Fullscreen secure system overlays get what they ask for.
|
// Fullscreen secure system overlays get what they ask for.
|
||||||
pf.left = df.left = mUnrestrictedScreenLeft;
|
pf.left = df.left = mUnrestrictedScreenLeft;
|
||||||
pf.top = df.top = mUnrestrictedScreenTop;
|
pf.top = df.top = mUnrestrictedScreenTop;
|
||||||
pf.right = df.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
|
pf.right = df.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
|
||||||
pf.bottom = df.bottom = mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
|
pf.bottom = df.bottom = mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
|
||||||
|
} else if (attrs.type == TYPE_BOOT_PROGRESS) {
|
||||||
|
// Boot progress screen always covers entire display.
|
||||||
|
pf.left = df.left = cf.left = mUnrestrictedScreenLeft;
|
||||||
|
pf.top = df.top = cf.top = mUnrestrictedScreenTop;
|
||||||
|
pf.right = df.right = cf.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
|
||||||
|
pf.bottom = df.bottom = cf.bottom
|
||||||
|
= mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
|
||||||
} else {
|
} else {
|
||||||
pf.left = df.left = cf.left = mRestrictedScreenLeft;
|
pf.left = df.left = cf.left = mRestrictedScreenLeft;
|
||||||
pf.top = df.top = cf.top = mRestrictedScreenTop;
|
pf.top = df.top = cf.top = mRestrictedScreenTop;
|
||||||
|
|||||||
@@ -180,7 +180,9 @@ class DimAnimator {
|
|||||||
|
|
||||||
public void printTo(String prefix, PrintWriter pw) {
|
public void printTo(String prefix, PrintWriter pw) {
|
||||||
pw.print(prefix);
|
pw.print(prefix);
|
||||||
pw.print("mDimSurface="); pw.println(mDimSurface);
|
pw.print("mDimSurface="); pw.print(mDimSurface);
|
||||||
|
pw.print(" "); pw.print(mLastDimWidth); pw.print(" x ");
|
||||||
|
pw.println(mLastDimHeight);
|
||||||
pw.print(prefix);
|
pw.print(prefix);
|
||||||
pw.print("mDimShown="); pw.print(mDimShown);
|
pw.print("mDimShown="); pw.print(mDimShown);
|
||||||
pw.print(" current="); pw.print(mDimCurrentAlpha);
|
pw.print(" current="); pw.print(mDimCurrentAlpha);
|
||||||
|
|||||||
@@ -8593,7 +8593,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
if (mDimAnimator == null) {
|
if (mDimAnimator == null) {
|
||||||
mDimAnimator = new DimAnimator(mFxSession);
|
mDimAnimator = new DimAnimator(mFxSession);
|
||||||
}
|
}
|
||||||
mDimAnimator.show(innerDw, innerDh);
|
if (attrs.type == WindowManager.LayoutParams.TYPE_BOOT_PROGRESS) {
|
||||||
|
mDimAnimator.show(dw, dh);
|
||||||
|
} else {
|
||||||
|
mDimAnimator.show(innerDw, innerDh);
|
||||||
|
}
|
||||||
mDimAnimator.updateParameters(mContext.getResources(),
|
mDimAnimator.updateParameters(mContext.getResources(),
|
||||||
w, currentTime);
|
w, currentTime);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user