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

Conversation

@ch8n
Copy link

@ch8n ch8n commented Oct 26, 2019

Hi @Angads25, I did some refactoring with your touch event listener logic, now its also giving callback to onClick listener so if anyone using click listener to toggle, but instead the user made a drag motion on it, it will give a callback to onclick listener as well, I tried but couldn't create a test with robolectric of drag behavior.

@dCosminn
Copy link

I'm new to programing and i might be wrong but after this fix, isOn() always seems to return false.
Like when trying to save the Switch state in pref manager like bellow:
prefManager.setAlarmSwitchState(alarmSwitch.isOn())

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants