Esempio n. 1
0
 @Override
 public void onReceiveUser(Intent intent) {
   CommUser newUser = getUser(intent);
   BroadcastUtils.BROADCAST_TYPE type = getType(intent);
   boolean follow = true;
   if (type == BroadcastUtils.BROADCAST_TYPE.TYPE_USER_FOLLOW) {
     follow = true;
   } else if (type == BroadcastUtils.BROADCAST_TYPE.TYPE_USER_CANCEL_FOLLOW) {
     follow = false;
   }
   if (mFansFragment != null) {
     mFansFragment.updateFansList(newUser.id, follow);
   }
 }