Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev

This commit is contained in:
Bryce Lee
2017-05-31 20:39:29 +00:00
committed by Android (Google) Code Review

View File

@@ -693,7 +693,8 @@ class WindowSurfacePlacer {
SurfaceControl surfaceControl = new SurfaceControl(mService.mFxSession,
"thumbnail anim", dirty.width(), dirty.height(),
PixelFormat.TRANSLUCENT, SurfaceControl.HIDDEN,
appToken.windowType, window.mOwnerUid);
appToken.windowType,
window != null ? window.mOwnerUid : Binder.getCallingUid());
surfaceControl.setLayerStack(display.getLayerStack());
if (SHOW_TRANSACTIONS) {
Slog.i(TAG, " THUMBNAIL " + surfaceControl + ": CREATE");