Merge "Only show collapse handle when the bottom widgets picker is scrollable" into sc-dev am: 1b28e6d40a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14453618 Change-Id: I3ae5a7e0770624f93ff4ef17991bd36ee68d5245
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user