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
diff --git a/packages/SystemUI/res/layout/media_projection_app_selector.xml b/packages/SystemUI/res/layout/media_projection_app_selector.xml index e474938..b77f78d 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"