Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b28e6d4 authored by Steven Ng's avatar Steven Ng Committed by Android (Google) Code Review
Browse files

Merge "Only show collapse handle when the bottom widgets picker is scrollable" into sc-dev

parents eab1f9bf 57347bd6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
@@ -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);
        }
    }