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

Commit e7da062d authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing WidgetBottomSheet getting cut off around insets

Bug: 265639220
Test: Verified on device
Flag: N/A
Change-Id: If595fde8e84a226aef82f41caa0be913b22d99c2
parent 958eabcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fadeScrollbars="false"
            android:layout_marginVertical="16dp">
            android:layout_marginTop="16dp">
            <include layout="@layout/widgets_table_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
+5 −2
Original line number Diff line number Diff line
@@ -252,8 +252,11 @@ public class WidgetsBottomSheet extends BaseWidgetSheet {
        super.setInsets(insets);
        int bottomPadding = Math.max(insets.bottom, mNavBarScrimHeight);

        mContent.setPadding(mContent.getPaddingStart(),
                mContent.getPaddingTop(), mContent.getPaddingEnd(),
        View widgetsTable = findViewById(R.id.widgets_table);
        widgetsTable.setPadding(
                widgetsTable.getPaddingLeft(),
                widgetsTable.getPaddingTop(),
                widgetsTable.getPaddingRight(),
                bottomPadding);
        if (bottomPadding > 0) {
            setupNavBarColor();