Пример #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());
   updateBundleValue(BUNDLE_KEY_STATE_LABEL, state.getStateLabel().name());
   updateBundleValue(BUNDLE_KEY_STATE, state.toJSONObject().toJSONString());
   broadcastAccountStateChangedIntent();
 }
Пример #2
0
 protected void updateBundleDataBytes(String key, byte[] value) {
   updateBundleValue(key, value == null ? null : Utils.byte2Hex(value));
 }