OSDN Git Service

Place black background only behind nav bar when letterboxed
authorAndrii Kulian <akulian@google.com>
Mon, 14 Aug 2017 22:30:48 +0000 (15:30 -0700)
committerAndrii Kulian <akulian@google.com>
Mon, 14 Aug 2017 22:51:52 +0000 (15:51 -0700)
commit06ab1e14eb343d45f4b51ff41c62a417ee9e5f51
tree6bf8426bf183df75dd6c5c20f6d82bdf4825cc3e
parent21f3489653c3c481ddb7315089bdf1e5ae19f0cd
Place black background only behind nav bar when letterboxed

Placing black background behind the entire app window causes
alpha animation issues, that can be visible as black flash to
user.
This CL sizes and positions the background only behind the
navigation bar area.

Bug: 64598822
Test: Open letterboxed app, go to/from Recents, observe animations.
Change-Id: I16a2243117f87ca513d5ef291b7c1d3779467f3b
services/core/java/com/android/server/wm/SurfaceControlWithBackground.java