Skip to content

Commit

Permalink
Fixed no't refresh ui bug. This's bug by #49
Browse files Browse the repository at this point in the history
  • Loading branch information
qiujuer committed Apr 7, 2016
1 parent 17a6dc2 commit 2214972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void setRtl(boolean isRtl) {

public void setNumSegments(int numSegments) {
this.mNumSegments = numSegments;
this.mTickDistance = (float) this.mContentWidth / (float) numSegments;
}

public int getTickRadius() {
Expand Down Expand Up @@ -253,7 +254,7 @@ private void draw(Canvas canvas, Paint paint, int thumbColor, int colorLeft, int
}

// Ticks Left
if (mThumbRadius > halfLeft) {
if (mTickRadius > halfLeft) {
paint.setColor(colorLeft);
for (int i = 0; i <= mNumSegments; i++) {
float x = i * mTickDistance + startLeft;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,9 @@ protected void onRestoreInstanceState(Parcelable state) {

/**
* Interface to transform the current internal value of this AbsSeekBar to anther one for the visualization.
* <p>
* <p/>
* This will be used on the floating bubble to display a different value if needed.
* <p>
* <p/>
* Using this in conjunction with {@link #setIndicatorFormatter(String)} you will be able to manipulate the
* value seen by the user
*
Expand Down

0 comments on commit 2214972

Please sign in to comment.