diff options
author | Adrian Roos <roosa@google.com> | 2017-12-12 16:07:55 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2017-12-12 18:16:27 +0100 |
commit | 2b0dcb3fd220ef02f534188c88451a3530c04396 (patch) | |
tree | e22028cffb9695a239834b0dbca55fd29708d174 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0b62766d27da6867cc6d00347cd81427a6ec9e86 (diff) |
DisplayCutout: Only dispatch to apps requesting it
Fixes a compatibility issues, where apps that were not expecting
a cutout were dispatched one anyway, which caused the WindowInsets
dispatch to continue down the hierarchy even though the SystemInsets
were consumed by the app.
To avoid this, we pre-emptively consume the cutout for any apps that
did not request to be laid out in the cutout area. This is safe,
because for apps that don't request it, the status bar will take care
of consuming it, or they won't be laid out in the cutout at all.
If apps still need to know where the cutout is, they can query for it
via View.getRootWindowInsets().
Fixes: 65689439
Bug: 70490585
Test: atest android.view.cts.DisplayCutoutTest
Change-Id: If06674c619f095d4105be1b3a511fb5823b63d2b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions