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

Commit 05c8c57f authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Removing dependency on LauncherCallbacks for getting the search bounds

> Instead of handling insets in BaseContainerView, directly applying
  them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
  handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
parent 1bc8fc3d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
    android:id="@+id/apps_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="@dimen/container_bounds_inset"
    android:paddingBottom="@dimen/container_bounds_inset"
    android:orientation="vertical"
    launcher:revealBackground="@drawable/quantum_panel_shape">

+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
    android:id="@+id/widgets_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="@dimen/container_bounds_inset"
    android:paddingBottom="@dimen/container_bounds_inset"
    android:descendantFocusability="afterDescendants"
    launcher:revealBackground="@drawable/quantum_panel_shape_dark">

+3 −0
Original line number Diff line number Diff line
@@ -18,4 +18,7 @@
<!-- QSB -->
    <dimen name="toolbar_button_vertical_padding">8dip</dimen>
    <dimen name="toolbar_button_horizontal_padding">0dip</dimen>

<!-- Container -->
     <item name="container_margin" format="fraction" type="fraction">12%</item>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
-->

<resources>
<!-- Container -->
    <dimen name="container_min_margin">16dp</dimen>

<!-- All Apps -->
    <dimen name="all_apps_grid_view_start_margin">0dp</dimen>
    <dimen name="all_apps_grid_section_text_size">26sp</dimen>
+3 −0
Original line number Diff line number Diff line
@@ -67,6 +67,9 @@
    <dimen name="container_fastscroll_popup_size">72dp</dimen>
    <dimen name="container_fastscroll_popup_text_size">48dp</dimen>

    <item name="container_margin" format="fraction" type="fraction">0%</item>
    <dimen name="container_min_margin">8dp</dimen>

<!-- All Apps -->
    <dimen name="all_apps_button_scale_down">0dp</dimen>
    <dimen name="all_apps_grid_view_start_margin">0dp</dimen>
Loading