CustomToggleButton
CustomToggleButton copied to clipboard
Toggle button resets on back click
I have integrated this project in my application. My activity has an EditText where user can type. Below are the steps for my issue:
- By default the left toggle is enabled on activity start.
- I enable the right toggle.
- I start typing something in the EditText.
- I click back; after this the keyboard hides and along with the left toggle also gets highlighted automatically.
- This happens in reverse also; select the right toggle button then click on EditText the toggle button automatically enables left toggle button when keyboard shows.
Can someone please help me resolve this?