summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Tiger <tigerhuang@google.com> 2023-08-29 19:53:50 +0800
committer Tiger Huang <tigerhuang@google.com> 2023-08-31 09:29:34 +0000
commit13eb05954a82af75f76a5d57c9f30a4a90dbe38a (patch)
treeb6399235d156f62358798091c31d590ee451e59a /libs/hwui/FrameInfoVisualizer.cpp
parentd73d60f4b62634dee1831e9210a2dfc0f4f03187 (diff)
Refine clearsCompatInsets
It is used to decide if the compat insets can be cleared by FLAG_LAYOUT_NO_LIMITS. Previously, it returns false if the window is in multi-window mode. However, since NAV_BAR_FORCE_VISIBLE can also force consuming system bars regardless of the windowing mode, this CL checks the activity type and the force consuming types instead. The reason why we need to check activity type is for compatibility that we only reject to clear compat insets for apps which have FLAG_LAYOUT_NO_LIMITS. For system windows, except wallpaper and system error windows, they can always clear compat insets by using FLAG_LAYOUT_NO_LIMITS. Fix: 291825755 Test: InsetsStateTest InsetsControllerTest ImeInsetsSourceConsumerTest Change-Id: I88271c6a45e5eb5c9770d0dab128a9806870f705
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions