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

Commit 9e75a52c authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

Merge "Ensure a11y ids for LabeledSeekBar are in bounds" into oc-mr1-dev

am: 6c9a1262

Change-Id: Iecdcc2b66a665b86be2f9fd0686619e758e2b7f4
parents 7ba9e9f8 6c9a1262
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ public class LabeledSeekBar extends SeekBar {
            int posBase = Math.max(0,
                    ((int) x - LabeledSeekBar.this.getPaddingStart()) / getHalfVirtualViewWidth());
            posBase = (posBase + 1) / 2;
            posBase = Math.min(posBase, LabeledSeekBar.this.getMax());
            return mIsLayoutRtl ? LabeledSeekBar.this.getMax() - posBase : posBase;
        }