kyleduo/SwitchButton

isPressed() method returns false in setOnCheckedChangeListener()

ertuzun opened this issue · 0 comments

  if (compoundButton.isPressed()) 
            Log.d(TAG, "pressed");
  else 
            Log.d(TAG, "not pressed");

When I change the button state by pressing it, else code block working.