summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2017-12-12 16:07:55 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-12-12 21:19:32 +0000
commit15fbd4d4ba418d46ee8b38af22e3567721863b16 (patch)
treecd5901f05161a0eb5c609788a540e66015a3d767 /opengl/tests/gl_basic/gl_basic.cpp
parent86325fc412704ed6d4850a1a0263b75eb07af5d2 (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 (cherry picked from commit 2b0dcb3fd220ef02f534188c88451a3530c04396)
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions