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

Commit 04ef35f8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Further adjust work profile tabs paddings in the widgets picker" into sc-dev

parents 75572340 a0d49dcf
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -124,6 +124,11 @@

    <dimen name="recommended_widgets_table_vertical_padding">8dp</dimen>

    <!-- Bottom margin for the search and recommended widgets container without work profile -->
    <dimen name="search_and_recommended_widgets_container_bottom_margin">16dp</dimen>
    <!-- Bottom margin for the search and recommended widgets container with work profile -->
    <dimen name="search_and_recommended_widgets_container_small_bottom_margin">10dp</dimen>

    <dimen name="widget_list_top_bottom_corner_radius">28dp</dimen>
    <dimen name="widget_list_content_corner_radius">4dp</dimen>

@@ -147,7 +152,7 @@
    <dimen name="widget_picker_education_tip_width">120dp</dimen>
    <dimen name="widget_picker_education_tip_min_margin">4dp</dimen>

    <dimen name="widget_picker_view_pager_top_padding">16dp</dimen>
    <dimen name="widget_picker_view_pager_top_padding">10dp</dimen>

    <!-- Padding applied to shortcut previews -->
    <dimen name="shortcut_preview_padding_left">0dp</dimen>
+10 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ public class WidgetsFullSheet extends BaseWidgetSheet
    };
    private final int mTabsHeight;
    private final int mViewPagerTopPadding;
    private final int mSearchAndRecommendationContainerBottomMargin;
    private final int mWidgetCellHorizontalPadding;

    @Nullable private WidgetsRecyclerView mCurrentWidgetsRecyclerView;
@@ -149,6 +150,10 @@ public class WidgetsFullSheet extends BaseWidgetSheet
                ? getContext().getResources()
                    .getDimensionPixelSize(R.dimen.widget_picker_view_pager_top_padding)
                : 0;
        mSearchAndRecommendationContainerBottomMargin = getContext().getResources()
                .getDimensionPixelSize(mHasWorkProfile
                        ? R.dimen.search_and_recommended_widgets_container_small_bottom_margin
                        : R.dimen.search_and_recommended_widgets_container_bottom_margin);
        mWidgetCellHorizontalPadding = 2 * getResources().getDimensionPixelOffset(
                R.dimen.widget_cell_horizontal_padding);
    }
@@ -192,6 +197,11 @@ public class WidgetsFullSheet extends BaseWidgetSheet
        mNoWidgetsView = findViewById(R.id.no_widgets_text);
        mSearchAndRecommendationViewHolder = new SearchAndRecommendationViewHolder(
                findViewById(R.id.search_and_recommendations_container));
        TopRoundedCornerView.LayoutParams layoutParams =
                (TopRoundedCornerView.LayoutParams)
                        mSearchAndRecommendationViewHolder.mContainer.getLayoutParams();
        layoutParams.bottomMargin = mSearchAndRecommendationContainerBottomMargin;
        mSearchAndRecommendationViewHolder.mContainer.setLayoutParams(layoutParams);
        mSearchAndRecommendationsScrollController = new SearchAndRecommendationsScrollController(
                mHasWorkProfile,
                mTabsHeight,