Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i'm trying to say "if its checked, then uncheck and recheck" and here are my 2 ideas:
- if (ledAlwaysOnEnabled) {
- (!mNotificationLightAlwaysOnEnabledPref.setChecked),
- mNotificationLightAlwaysOnEnabledPref.setChecked;
- }
- OR
- if (ledAlwaysOnEnabled) {
- mNotificationLightAlwaysOnEnabledPref.setChecked(false);
- mNotificationLightAlwaysOnEnabledPref.setChecked(true);
- }
- which one is better/will work?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement