Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88210150 authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

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

am: 689f41e8

Change-Id: If1ad2d95a354c1b22d52dd219a8cda70c80e0d17
parents c593bd3c 689f41e8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import android.content.res.Configuration;
import android.graphics.GraphicBuffer;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.os.Binder;
import android.os.Debug;
import android.os.Trace;
import android.util.ArraySet;
@@ -693,7 +694,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");