@Override
 protected void onDialogClosed(boolean positiveResult) {
   if (positiveResult) {
     persistInt(mValue);
     User user = ((CompassApplication) getContext().getApplicationContext()).getUser();
     user.setDailyNotifications(mValue);
     HttpRequest.put(null, API.URL.putUserProfile(user), API.BODY.putUserProfile(user));
   } else {
     mValue = parsePreference(getKey(), getContext());
   }
 }