OSDN Git Service

Limit black background to only base and starting windows
authorAndrii Kulian <akulian@google.com>
Wed, 16 Aug 2017 00:49:24 +0000 (17:49 -0700)
committerAndrii Kulian <akulian@google.com>
Wed, 16 Aug 2017 01:59:14 +0000 (18:59 -0700)
commite3332341c34893eafbb1c3cd786f1e3779c79411
treeea5c574c0c3109b9e624da0ee7793cda6926b646
parenta3c2cee05562838cf64e7d0946b2ea66e6541304
Limit black background to only base and starting windows

Show black background behind nav bar only behind windows
with type TYPE_APPLICATION_STARTING or TYPE_BASE_APPLICATION,
which corresponds to main window of an activity.

Bug: 64711770
Test: Go to Wallpapers app, select a static one, click "set" and check the background of the dialog.
Test: Open letterboxed app, go to/from Recents.
Change-Id: I42357a5df70b5dd58b422f31704c71d36074a50c
services/core/java/com/android/server/wm/SurfaceControlWithBackground.java