Skip to content

Commit ed6954a

Browse files
committed
Ensure we never fade the line if fading is disabled. Closes JakeWharton#99.
1 parent 7be442b commit ed6954a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/com/viewpagerindicator/UnderlinePageIndicator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public class UnderlinePageIndicator extends View implements PageIndicator {
5858

5959
private final Runnable mFadeRunnable = new Runnable() {
6060
@Override public void run() {
61+
if (!mFades) return;
62+
6163
final int alpha = Math.max(mPaint.getAlpha() - mFadeBy, 0);
6264
mPaint.setAlpha(alpha);
6365
invalidate();

0 commit comments

Comments
 (0)