mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-10 21:28:34 +00:00
parent
33c527f15e
commit
599e89b1f9
@ -120,6 +120,10 @@ public final class WaveFormSeekBarView extends AppCompatSeekBar {
|
|||||||
canvas.save();
|
canvas.save();
|
||||||
canvas.translate(getPaddingLeft(), getPaddingTop());
|
canvas.translate(getPaddingLeft(), getPaddingTop());
|
||||||
|
|
||||||
|
if (getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
|
||||||
|
canvas.scale(-1, 1, usableWidth / 2f, usableHeight / 2f);
|
||||||
|
}
|
||||||
|
|
||||||
for (int bar = 0; bar < data.length; bar++) {
|
for (int bar = 0; bar < data.length; bar++) {
|
||||||
float x = bar * (barWidth + barGap) + barWidth / 2f;
|
float x = bar * (barWidth + barGap) + barWidth / 2f;
|
||||||
float y = data[bar] * maxHeight;
|
float y = data[bar] * maxHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user