oli107 / material-range-bar

Android widget for selecting a range of values.
Apache License 2.0
1.68k stars 370 forks source link

Pin disappears on setRangePinsByIndices #77

Open jkwiecien opened 8 years ago

jkwiecien commented 8 years ago

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

vo55 commented 7 years ago

Did you find a solution?

candeiasdan commented 7 years ago

any solution?

vo55 commented 7 years ago

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

phamvuong commented 7 years ago

Which merge request did you mention ?