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

Commit 10f10a76 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[DocsUI M3] Fixed the move issue for filter chips" into main

parents 6c8aa0b1 8d39bdab
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -454,13 +454,13 @@ public class SearchChipViewManager {
                                .getResources()
                                .getDimensionPixelSize(R.dimen.search_chip_spacing);
        final boolean isRtl = mChipGroup.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
        final float chipMarginStartEnd =
        final float chipGroupPaddingStart =
                useMaterial3()
                        ? 0
                        ? mChipGroup.getPaddingStart()
                        : mChipGroup
                                .getResources()
                                .getDimensionPixelSize(R.dimen.search_chip_half_spacing);
        float lastX = isRtl ? mChipGroup.getWidth() - chipMarginStartEnd : chipMarginStartEnd;
        float lastX = isRtl ? mChipGroup.getWidth() - chipGroupPaddingStart : chipGroupPaddingStart;

        // remove all chips except current clicked chip to avoid losing
        // accessibility focus.