public final volatile void onResult(Result result) {
    boolean flag = false;
    result = (com.google.android.gms.games.request.oader) result;
    if (mFragment.canUseResult(result)) {
      GameRequestBuffer gamerequestbuffer1 = result.quests(1);
      GameRequestBuffer gamerequestbuffer = result.quests(2);
      ArrayList arraylist =
          new ArrayList(gamerequestbuffer1.getCount() + gamerequestbuffer.getCount());
      int k = gamerequestbuffer1.getCount();
      for (int i = 0; i < k; i++) {
        GameRequest gamerequest1 = (GameRequest) ((GameRequest) gamerequestbuffer1.get(i)).freeze();
        sRequestMap.put(
            new RequestKey(mApplicationId, mPlayerId, gamerequest1.getRequestId()), gamerequest1);
        arraylist.add(gamerequest1);
      }

      k = gamerequestbuffer.getCount();
      for (int j = ((flag) ? 1 : 0); j < k; j++) {
        GameRequest gamerequest = (GameRequest) ((GameRequest) gamerequestbuffer.get(j)).freeze();
        sRequestMap.put(
            new RequestKey(mApplicationId, mPlayerId, gamerequest.getRequestId()), gamerequest);
        arraylist.add(gamerequest);
      }

      mCallback.onRequestsLoaded(arraylist);
    } else {
      GamesLog.e("AppContentFrag", "Failed to load requests");
    }
    result.se();
    finish();
  }
  public static String fromInt(int i) {
    switch (i) {
      default:
        GamesLog.e(
            "MatchTurnStatus",
            (new StringBuilder("Unknown match turn status: ")).append(i).toString());
        return "TURN_STATUS_UNKNOWN";

      case 0: // '\0'
        return "TURN_STATUS_INVITED";

      case 1: // '\001'
        return "TURN_STATUS_MY_TURN";

      case 2: // '\002'
        return "TURN_STATUS_THEIR_TURN";

      case 3: // '\003'
        return "TURN_STATUS_COMPLETE";
    }
  }