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

Pin disappears on setRangePinsByIndices

Open jkwiecien opened this issue 8 years ago • 4 comments

My rangebar with constant pin (not the tmeporary one) and only right pin behaves badly when rangebar.setRangePinsByIndices(0, 3); is called. I managed to reproduce it on the sample app. The thing is it only reproduces when setRangePinsByIndices is called after some time like this:

rangebar.postDelayed(new Runnable() {
            @Override
            public void run() {
                rangebar.setRangePinsByIndices(0, 3);
            }
        }, 2000);

It's a simple sample but it behaves the same way when threading with rxjava and probably anything else.

I made a branch demonstrating that on my fork: https://github.com/jkwiecien/material-range-bar/tree/pin-disappear

jkwiecien avatar Aug 03 '16 06:08 jkwiecien

Did you find a solution?

vo55 avatar Feb 01 '17 13:02 vo55

any solution?

candeiasdan avatar Feb 17 '17 12:02 candeiasdan

There is a merge request fixing that problem. I did copy parts of that and rewrite the library.

vo55 avatar Feb 17 '17 15:02 vo55

Which merge request did you mention ?

phamvuong avatar Sep 10 '17 08:09 phamvuong