diff options
author | 2025-03-06 07:58:28 +0000 | |
---|---|---|
committer | 2025-03-06 07:58:28 +0000 | |
commit | 0788706fe3decac5277c15328df801a517b3fd9c (patch) | |
tree | 2ef97a8ea4bb2c9274b794ebbf0c63cdb034dd7b /libs/androidfw/misc.cpp | |
parent | 7f8bd2fbfa69f2291880dd51f09cbfce093cf4bb (diff) |
Center hub UI horizontally in landscape
When mobile devices with display cutout is in landscape,
communal container has either left or right margin set from
system window insets.
For hub to be edge to edge, reset the horizontal margin in
onApplyWindowInsets listener.
Fixes: b/395706952
Test: on foldable mobile
Flag: com.android.systemui.glanceable_hub_v2
Change-Id: Ic6244ef7a9c1a64b1e0536a36513193bf8f6dbff
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions