Ejemplo n.º 1
0
 public synchronized void setState(State state) {
   if (state == null) {
     throw new IllegalArgumentException("state must not be null");
   }
   Logger.info(
       LOG_TAG,
       "Moving account named like "
           + getObfuscatedEmail()
           + " to state "
           + state.getStateLabel().toString());
   updateBundleValues(
       BUNDLE_KEY_STATE_LABEL, state.getStateLabel().name(),
       BUNDLE_KEY_STATE, state.toJSONObject().toJSONString());
   broadcastAccountStateChangedIntent();
 }