Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

when setOnClickListener is called the isOn state is opposite #22

Open
kenargo opened this issue Jan 25, 2019 · 4 comments
Open

when setOnClickListener is called the isOn state is opposite #22

kenargo opened this issue Jan 25, 2019 · 4 comments

Comments

@kenargo
Copy link

kenargo commented Jan 25, 2019

If I use the setOnClickListener (which I prefer as it is more standard with the common widgets) the state of isOn reports the opposite of what the state is.

In other words, if the toggle is turning ON then when setOnClickListener is called the isOn state reports OFF. If the toggle is turning OFF then when setOnClickListener is called the isOn state reports ON.

@ch8n
Copy link

ch8n commented Oct 26, 2019

Hi @kenargo you can refer to my #25 , you will get correct behavior on set click listener

@kenargo
Copy link
Author

kenargo commented Oct 26, 2019 via email

@kenargo
Copy link
Author

kenargo commented Oct 28, 2019 via email

@ch8n
Copy link

ch8n commented Oct 29, 2019

@kenargo I have updated to code in master branch I needed to write test but I have a oneplus device and UI dumping for espresso test isnt working for it, also I'm not able to produce drag behaviour using roboeltric test, to the changes are not tested , but I have just manually checked for now, If you can write test would be great help! it upto @Angads25 to accept PR without test or not

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants