Merge "Fixed NPE during boot animation on fugu." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a1e7be375e
@@ -538,12 +538,15 @@ public class DockedStackDividerController implements DimLayerUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean animate(long now) {
|
public boolean animate(long now) {
|
||||||
|
if (mWindow == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (mAnimatingForMinimizedDockedStack) {
|
if (mAnimatingForMinimizedDockedStack) {
|
||||||
return animateForMinimizedDockedStack(now);
|
return animateForMinimizedDockedStack(now);
|
||||||
} else if (mAnimatingForIme) {
|
} else if (mAnimatingForIme) {
|
||||||
return animateForIme(now);
|
return animateForIme(now);
|
||||||
} else {
|
} else {
|
||||||
if (mDimLayer != null) {
|
if (mDimLayer != null && mDimLayer.isDimming()) {
|
||||||
mDimLayer.setLayer(mService.mLayersController.getResizeDimLayer());
|
mDimLayer.setLayer(mService.mLayersController.getResizeDimLayer());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import static android.app.ActivityManager.StackId.PINNED_STACK_ID;
|
|||||||
import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER;
|
import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER;
|
||||||
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_LAYERS;
|
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_LAYERS;
|
||||||
import static com.android.server.wm.WindowManagerDebugConfig.TAG_WM;
|
import static com.android.server.wm.WindowManagerDebugConfig.TAG_WM;
|
||||||
|
import static com.android.server.wm.WindowManagerService.LAYER_OFFSET_DIM;
|
||||||
import static com.android.server.wm.WindowManagerService.WINDOW_LAYER_MULTIPLIER;
|
import static com.android.server.wm.WindowManagerService.WINDOW_LAYER_MULTIPLIER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -150,7 +151,7 @@ public class WindowLayersController {
|
|||||||
* above all application surfaces.
|
* above all application surfaces.
|
||||||
*/
|
*/
|
||||||
int getResizeDimLayer() {
|
int getResizeDimLayer() {
|
||||||
return mDockDivider.mLayer - 1;
|
return (mDockDivider != null) ? mDockDivider.mLayer - 1 : LAYER_OFFSET_DIM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void logDebugLayers(WindowList windows) {
|
private void logDebugLayers(WindowList windows) {
|
||||||
|
|||||||
Reference in New Issue
Block a user