private void updateColors(Play play){
  if (play.getPlayerCount() == 0) {
    return;
  }
  if (!ResolverUtils.rowExists(resolver,Games.buildGameUri(play.gameId))) {
    return;
  }
  List<ContentValues> values=new ArrayList<>();
  for (  Player player : play.getPlayers()) {
    String color=player.color;
    if (!TextUtils.isEmpty(color)) {
      ContentValues cv=new ContentValues();
      cv.put(GameColors.COLOR,color);
      values.add(cv);
    }
  }
  if (values.size() > 0) {
    ContentValues[] array={};
    resolver.bulkInsert(Games.buildColorsUri(play.gameId),values.toArray(array));
  }
}

private void updateColors ( Play play ) { if ( play . getPlayerCount ( ) == 0 ) { return ; } if ( ! ResolverUtils . rowExists ( resolver , Games . buildGameUri ( play . gameId ) ) ) { return ; } List < ContentValues > values = new ArrayList < > ( ) ; for ( Player player : play . getPlayers ( ) ) { String color = player . color ; if ( ! TextUtils . isEmpty ( color ) ) { ContentValues cv = new ContentValues ( ) ; cv . put ( GameColors . COLOR , color ) ; values . add ( cv ) ; } } if ( values . size ( ) > 0 ) { ContentValues [ ] array = { } ; resolver . bulkInsert ( Games . buildColorsUri ( play . gameId ) , values . toArray ( array ) ) ; } }
add the current players ' team / colors to the permanent list for the game .
