Similar question again link. But the thread is old and can figure it out. I would like to change the state of switchA from within switchB and vice versa, but don't want to trigger the code in the listener. The code needs to be executed only when the switch is pressed. I got as far as:
switchA.setOnCheckedChangeListener (null);
switchA.setChecked(false);
but this disables the switchA listener entirely. How to turn/activate it on agian?
Thanks.