Merge "Fixing WidgetBottomSheet getting cut off around insets" into udc-dev am: 3a75b494f2

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

Change-Id: I4e9bdd721513335fbe3577e81e790e29cded1b4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2023-05-06 10:20:37 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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"
@@ -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();