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

Commit 59126106 authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Set maximum width for context menu icons.

Fixes bug where a large icon will be incorrectly scaled down and
push the menu item label too far to the right.

Bug: 345709107
Flag: EXEMPT - resources only
Test: Visual inspection on device

Change-Id: I07e97bc970073b169cb551820d6d7d99a8dbc581
parent a9910754
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@
    android:id="@+id/icon"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:maxWidth="@dimen/list_menu_item_icon_max_width"
    android:adjustViewBounds="true"
    android:layout_gravity="center_vertical"
    android:layout_marginStart="8dip"
    android:layout_marginEnd="-8dip"
+3 −0
Original line number Diff line number Diff line
@@ -1065,4 +1065,7 @@
    <!-- The non-linear progress interval when the screen is wider than the
        navigation_edge_action_progress_threshold. -->
    <item name="back_progress_non_linear_factor" format="float" type="dimen">0.2</item>

    <!-- The maximum width for a context menu icon -->
    <dimen name="list_menu_item_icon_max_width">24dp</dimen>
</resources>