Ejemplo n.º 1
0
 private void setAvatarBroadcastingAnimation(boolean isBroadcasting) {
   int avatarIndex = 0;
   for (User user : users) {
     if (user.getId().equals(appState.getActiveUser().getId())) {
       View avatar = getAvatarByPosition(avatarIndex);
       Log.d(TAG, "Setting broadcast animation for " + avatarIndex);
       avatarAdapter.setUserIsBroadcastingLocation(avatar, isBroadcasting);
     }
     avatarIndex++;
   }
 }
Ejemplo n.º 2
0
 /**
  * ******************************************************** Helpers
  * ********************************************************
  */
 private void update() {
   if (appState != null) {
     users = appState.getActiveCircle().getUsers();
     avatarAdapter.update(users);
   }
 }