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

Commit 06849e8f authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix SeekBar when in RTL layout direction

- set correct thumb position depending on layout direction

Change-Id: Ibc489295d28792ec7556ce3484b2d1ae47a4c704
parent 5e900e3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -304,7 +304,8 @@ public abstract class AbsSeekBar extends ProgressBar {
        }
        }
        
        
        // Canvas will be translated, so 0,0 is where we start drawing
        // Canvas will be translated, so 0,0 is where we start drawing
        thumb.setBounds(thumbPos, topBound, thumbPos + thumbWidth, bottomBound);
        final int left = isLayoutRtl() ? available - thumbPos : thumbPos;
        thumb.setBounds(left, topBound, left + thumbWidth, bottomBound);
    }
    }


    @Override
    @Override