Advertisement
techmik

my check

Sep 26th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. i'm trying to say "if its checked, then uncheck and recheck" and here are my 2 ideas:
  2.  
  3.  
  4.  
  5. if (ledAlwaysOnEnabled) {
  6. (!mNotificationLightAlwaysOnEnabledPref.setChecked),
  7. mNotificationLightAlwaysOnEnabledPref.setChecked;
  8. }
  9.  
  10.  
  11.  
  12. OR
  13.  
  14.  
  15.  
  16. if (ledAlwaysOnEnabled) {
  17. mNotificationLightAlwaysOnEnabledPref.setChecked(false);
  18. mNotificationLightAlwaysOnEnabledPref.setChecked(true);
  19. }
  20.  
  21.  
  22.  
  23. which one is better/will work?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement