I was trying to set the focusability of a component and found these two methods, hoping I could use them to make the component only focusable when the user touches it, not when requested programmatically:
myComponent.setFocusable(false);
myComponent.setFocusableInTouchMode(true);
Then I looked at their documentation:
public void setFocusable (boolean focusable)
Set whether this view can receive the focus. Setting this to false will also ensure that this view is not focusable in touch mode.
public void setFocusableInTouchMode (boolean focusableInTouchMode)
Set whether this view can receive focus while in touch mode. Setting this to true will also ensure that this view is focusable.
So, if calling either one implicitly calls the other, why make the distinction?