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

Commit c6312b46 authored by Winson Chung's avatar Winson Chung
Browse files

Increase size of the back/ime switcher buttons in gesture nav

- This matches the size of the back/ime switcher buttons in
  button nav. Previously we intercepted all touches in the nav
  bar, but since the IME is interested in handling touches in
  the bar (where there are no buttons), we moved to specific
  touch regions for each button. As a result, only the immediate
  button size was tappable making the target too small.
- Also make the parents in the hierarchy non-clipping so that
  it doesn't clip the background ripple with the larger size

Bug: 184983443
Test: Show the IME, verify the buttons are larger
Change-Id: I4db6df26d8a1e1bd6675635224baa9a9ee6de044
parent 4f2e331f
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -22,11 +22,15 @@
    android:id="@+id/navigation_bar_view"
    android:id="@+id/navigation_bar_view"
    android:layout_height="match_parent"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:background="@drawable/system_bar_background">
    android:background="@drawable/system_bar_background">


    <com.android.systemui.navigationbar.NavigationBarInflaterView
    <com.android.systemui.navigationbar.NavigationBarInflaterView
        android:id="@+id/navigation_inflater"
        android:id="@+id/navigation_inflater"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
        android:layout_height="match_parent"
        android:clipChildren="false"
        android:clipToPadding="false" />


</com.android.systemui.navigationbar.NavigationBarView>
</com.android.systemui.navigationbar.NavigationBarView>
+2 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,8 @@
    android:layout_marginEnd="@dimen/rounded_corner_content_padding"
    android:layout_marginEnd="@dimen/rounded_corner_content_padding"
    android:paddingStart="@dimen/nav_content_padding"
    android:paddingStart="@dimen/nav_content_padding"
    android:paddingEnd="@dimen/nav_content_padding"
    android:paddingEnd="@dimen/nav_content_padding"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:id="@+id/horizontal">
    android:id="@+id/horizontal">


    <com.android.systemui.navigationbar.buttons.NearestTouchFrame
    <com.android.systemui.navigationbar.buttons.NearestTouchFrame
+1 −1
Original line number Original line Diff line number Diff line
@@ -349,7 +349,7 @@
    <!-- Nav bar button default ordering/layout -->
    <!-- Nav bar button default ordering/layout -->
    <string name="config_navBarLayout" translatable="false">left[.5W],back[1WC];home;recent[1WC],right[.5W]</string>
    <string name="config_navBarLayout" translatable="false">left[.5W],back[1WC];home;recent[1WC],right[.5W]</string>
    <string name="config_navBarLayoutQuickstep" translatable="false">back[1.7WC];home;contextual[1.7WC]</string>
    <string name="config_navBarLayoutQuickstep" translatable="false">back[1.7WC];home;contextual[1.7WC]</string>
    <string name="config_navBarLayoutHandle" translatable="false">back[40AC];home_handle;ime_switcher[40AC]</string>
    <string name="config_navBarLayoutHandle" translatable="false">back[70AC];home_handle;ime_switcher[70AC]</string>


    <bool name="quick_settings_show_full_alarm">false</bool>
    <bool name="quick_settings_show_full_alarm">false</bool>