Fix issue #6037252: Screen shifts after all apps are upgraded

Two things: (1) make sure the boot message is always positioned within
the entire unrestricted display, and (2) allow the dim background to go
on top of the nav bar when being used for the boot message (this latter
is really a hack that should be more generally fixed in the future).

Change-Id: I7261b044eb802a39cadff931b50a679ff18781d6
This commit is contained in:
Dianne Hackborn
2012-02-21 13:54:21 -08:00
parent 2d559b5311
commit 01011c3d7c
3 changed files with 17 additions and 3 deletions

View File

@ -180,7 +180,9 @@ class DimAnimator {
public void printTo(String prefix, PrintWriter pw) {
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("mDimShown="); pw.print(mDimShown);
pw.print(" current="); pw.print(mDimCurrentAlpha);

View File

@ -8593,7 +8593,11 @@ public class WindowManagerService extends IWindowManager.Stub
if (mDimAnimator == null) {
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(),
w, currentTime);
}