am 2cd35662: Merge "Fix SeekBar when in RTL layout direction" into jb-mr1-dev

* commit '2cd35662caa824846555a3be595b7fa69337fa31':
  Fix SeekBar when in RTL layout direction
This commit is contained in:
Fabrice Di Meglio
2012-09-12 13:31:13 -07:00
committed by Android Git Automerger

View File

@@ -304,7 +304,8 @@ public abstract class AbsSeekBar extends ProgressBar {
}
// 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