Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // KeyTypedRepeatTask doesn't stop when the widget is disabled, and when you reactivate it, it continues writing. I've just added
  2. // the cancel call method.
  3. ////////////////////////////////////////////////
  4.  
  5. @Override
  6. public void setDisabled (boolean disabled) {
  7. this.disabled = disabled;
  8. if (disabled) {
  9. FocusManager.getFocus();
  10. keyTypedRepeatTask.cancel();
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement