Revision 2dfe43d3
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialog/RubikDialogScoresView.java | ||
---|---|---|
94 | 94 |
|
95 | 95 |
int white = res.getColor(R.color.white); |
96 | 96 |
int red = res.getColor(R.color.red); |
97 |
boolean equals; |
|
97 | 98 |
|
98 | 99 |
for(int j=0; j<MAX_PLACES-1; j++) |
99 | 100 |
{ |
... | ... | |
106 | 107 |
level.addView(row); |
107 | 108 |
} |
108 | 109 |
|
109 |
theirCountryID = res.getIdentifier( country[j], "drawable", packageName); |
|
110 |
theirTime = Float.toString(time[j]); |
|
111 |
View row = createRow(act, theirCountryID, name[j], theirTime, name[j].equals(myName) ? red:white); |
|
112 |
level.addView(row); |
|
110 |
equals = name[j].equals(myName); |
|
111 |
|
|
112 |
if( !inserted || !equals ) |
|
113 |
{ |
|
114 |
if( equals ) inserted=true; |
|
115 |
theirCountryID = res.getIdentifier( country[j], "drawable", packageName); |
|
116 |
theirTime = Float.toString(time[j]); |
|
117 |
View row = createRow(act, theirCountryID, name[j], theirTime, equals ? red:white); |
|
118 |
level.addView(row); |
|
119 |
} |
|
113 | 120 |
} |
114 | 121 |
} |
115 | 122 |
|
Also available in: Unified diff
Bugfix for downloading High Scores.