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

Commit 6db4d15d authored by Bryce Lee's avatar Bryce Lee
Browse files

Handle not having main window in createThumbnailAppAnimator.

A recent code change associated the SurfaceControl with the main
window owner id. However, it is possible for the an AppWindowToken to
not have a main window. This case is handled later in the method.

This CL restores the original behavior of using the calling uid in
the cases no main window is present.

Change-Id: Iad69fe383c2208c1db523c8b4601a8f927f9318a
Fixes: 62096254
Test: go/wm-smoke
parent 06951ac7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -694,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");