OSDN Git Service

Handle not having main window in createThumbnailAppAnimator.
authorBryce Lee <brycelee@google.com>
Wed, 31 May 2017 17:27:42 +0000 (10:27 -0700)
committerBryce Lee <brycelee@google.com>
Thu, 1 Jun 2017 15:04:21 +0000 (08:04 -0700)
commite6c25d4a6f35449a8420f0d1e87529426786ad60
treebdb19eccc2739fecbed5a512b5b2fdd48d84f2c0
parent94ea9bb5719c8c6cdad51406611772b158f70c3d
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: I8255be9e0d68adc75fda0947c64f869b7eeb76c9
Fixes: 62096254
Test: go/wm-smoke
services/core/java/com/android/server/wm/WindowSurfacePlacer.java