I have a MediaRouterButton for chromecast in my android device. Now i want to programmatically enable/disable its click, so I have such line of code:
mediaButton.setClickable( false ).
But it doesnt disable its click , the chromecast dialog still show up.
I try checking the source code for it, it overrides the performClick() method, but after I set a break point to this method and debug, i find no methods in the stack other than this performClick().
Can anyone tell me why this is happening?