Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be6a9a57 authored by Tiger Huang's avatar Tiger Huang
Browse files

Re-land: Make action mode view extend into system insets area

This CL makes the action mode view extend into system insets area if the
insets don't get consumed by its parent container. If the vertical
navigation bar is visible, the action mode view and the action bar will
fit navigation bar, which will align the width of the status bar color
view, and there won't be weird color blending in the corner.

Before this CL, when onConfigurationChanged of an ActionBarContextView
is called, it would read and set the wrong content height. This is
because ActionBarContextView extends AbsActionBarView, but didn't
override onConfigurationChanged which would read ActionBar_height
instead of ActionMode_height. This CL also fixes the issue.

Bug: 379783298
Fix: 397378527
Flag: com.android.window.flags.action_mode_edge_to_edge
Test: atest ActionBarContextViewTest
Change-Id: Iaa805482cf69fbf846b31a4626c01e9cbeafd12e
parent 8d989e6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment