Project

General

Profile

« Previous | Next » 

Revision 82ce8e64

Added by Leszek Koltunski about 4 years ago

Progress with getting/setting Country and DeviceID.

View differences:

src/main/java/org/distorted/dialog/RubikDialogScoresView.java
85 85
    float myRecordInSeconds = (myRecordInMillis/100)/10.0f;
86 86
    boolean mySubmitted = scores.isSubmitted(object, size, scramble);
87 87
    String myName = scores.getName();
88
    int myCountryID = scores.getCountryID();
88
    int myCountryID = res.getIdentifier( scores.getCountry(), "drawable", packageName);
89 89
    String myRecord = ( myRecordInMillis<RubikScores.NO_RECORD ) ? Float.toString(myRecordInSeconds) : "??";
90 90
    String theirTime;
91 91
    int theirCountryID;
......
106 106

  
107 107
        theirCountryID = res.getIdentifier( country[j], "drawable", packageName);
108 108
        theirTime = Float.toString(time[j]);
109
        View row = createRow(act, theirCountryID, name[j], theirTime, white);
109
        View row = createRow(act, theirCountryID, name[j], theirTime, name[j].equals(myName) ? red:white);
110 110
        level.addView(row);
111 111
        }
112 112
      }

Also available in: Unified diff