Don't invalidate view if setEnabled doesn't change the state.
Check the current enabled state before setting it, in case there's no change. Otherwise some apps are repeatedly redrawing buttons based on validation of some text field (like gmail or mms message bodies). Should slightly improve the performance of soft keyboard text entry.
Loading
Please register or sign in to comment