material-range-bar icon indicating copy to clipboard operation
material-range-bar copied to clipboard

RangeBar Mode => thumbs hiding when u setRangePingByValue , setByIndex, setTick = w/e its always hiding thumbs :D

Open KarolMB opened this issue 8 years ago • 0 comments

Problem is there

if (pinRadiusDP == -1) {
            mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                    DEFAULT_THUMB_RADIUS_DP,
                    mRes.getDisplayMetrics());
        } else {
            mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
            ->>     pinRadiusDP,
                    mRes.getDisplayMetrics());
        }

pinRadiusDP == 0..0 soo its not going to the first condition.. and setting pinRadius to 0.0 DP so pins are invisible.

FAST SOLUTION: change the dp value

  if (pinRadiusDP == -1) {
            mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                    DEFAULT_THUMB_RADIUS_DP,
                    mRes.getDisplayMetrics());
        } else {
            mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                -->>    DEFAULT_THUMB_RADIUS_DP,
                    mRes.getDisplayMetrics());
        }

but if You will update this library to new version change the condition

KarolMB avatar Mar 08 '16 12:03 KarolMB