Merge "Only show collapse handle when the bottom widgets picker is scrollable" into sc-dev am: 1b28e6d40a am: ddada389f7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14453618

Change-Id: I2f091b703b438c08ed8fc111a05932bc1857f9f4
This commit is contained in:
Steven Ng
2021-05-06 22:31:23 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 0 deletions
@@ -15,10 +15,12 @@
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<View
android:id="@+id/collapse_handle"
android:layout_width="48dp"
android:layout_height="2dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"
android:visibility="gone"
android:background="?android:attr/textColorSecondary"/>
<TextView
style="@style/TextHeadline"
@@ -118,6 +118,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable {
ViewGroup.LayoutParams layoutParams = widgetsTableScrollView.getLayoutParams();
layoutParams.height = mMaxTableHeight;
widgetsTableScrollView.setLayoutParams(layoutParams);
findViewById(R.id.collapse_handle).setVisibility(VISIBLE);
}
}