diff options
| author | 2023-09-06 16:04:57 +0100 | |
|---|---|---|
| committer | 2023-09-06 16:05:10 +0100 | |
| commit | 5d36c0a35d467b942820a07027e4b6508c2da1d7 (patch) | |
| tree | 0501e565bd504debe87ce1c69f7c539d481574b3 | |
| parent | 61e1769c1bf040318d3c004b2c38185a4c12ad97 (diff) | |
PSS: Make app chooser always fully expanded
When starting the chooser without work profile, it was too short, and
the list of apps was not visible.
This fix sets the max collapsed height to a huge number, to make sure
that it is always expanded, and the user can see as much as possible.
Fixes: 290581980
Test: TODO: Screenshot tests are currently broken for PSS
Test: Manual - Start PSS without work profile on a small screen
Change-Id: I29b570f1458e5db39119427637d5c53629f579b3
| -rw-r--r-- | packages/SystemUI/res/layout/media_projection_app_selector.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/res/layout/media_projection_app_selector.xml b/packages/SystemUI/res/layout/media_projection_app_selector.xml index e4749381243a..b77f78dfc644 100644 --- a/packages/SystemUI/res/layout/media_projection_app_selector.xml +++ b/packages/SystemUI/res/layout/media_projection_app_selector.xml @@ -20,10 +20,11 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" - androidprv:maxCollapsedHeight="0dp" + androidprv:maxCollapsedHeight="10000dp" androidprv:maxCollapsedHeightSmall="56dp" androidprv:maxWidth="@*android:dimen/chooser_width" android:id="@*android:id/contentPanel"> + <!-- maxCollapsedHeight above is huge, to make sure the layout is always expanded. --> <LinearLayout android:id="@*android:id/chooser_header" |