Revision 7adf6974
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/dialogs/RubikDialogScoresPagerAdapter.java | ||
---|---|---|
47 | 47 |
private int mNetworkState; |
48 | 48 |
private final Object mObj; |
49 | 49 |
|
50 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
51 |
// we do not show level8 (i.e. level==7) - because in the new UI 2.0 this one does not exist anymore. |
|
52 |
|
|
53 |
private boolean showLevel(int level) |
|
54 |
{ |
|
55 |
return level!=7; |
|
56 |
} |
|
57 |
|
|
50 | 58 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
51 | 59 |
|
52 | 60 |
public void receive(final String[][][] country, final String[][][] name, final int[][][] time) |
... | ... | |
68 | 76 |
String[][] c = country[t]; |
69 | 77 |
String[][] n = name[t]; |
70 | 78 |
int[][] tm = time[t]; |
71 |
for(int l=0; l<=num; l++) thr.newWork(t, l, num, mViews[t], c[l], n[l], tm[l]); |
|
79 |
for(int l=0; l<=num; l++) |
|
80 |
if( showLevel(l) ) thr.newWork(t, l, num, mViews[t], c[l], n[l], tm[l]); |
|
72 | 81 |
} |
73 | 82 |
} |
74 | 83 |
} |
... | ... | |
173 | 182 |
RubikDialogScoresThread thr = RubikDialogScoresThread.getInstance(); |
174 | 183 |
thr.equip(mAct,mViewPager); |
175 | 184 |
|
176 |
for(int l=0; l<=num; l++) thr.newWork(position, l, num, view, c[l], n[l], tm[l]); |
|
185 |
for(int l=0; l<=num; l++) |
|
186 |
if( showLevel(l) ) thr.newWork(position, l, num, view, c[l], n[l], tm[l]); |
|
177 | 187 |
} |
178 | 188 |
else if( mNetworkState==NETWORK_FAILURE ) |
179 | 189 |
{ |
Also available in: Unified diff
do not show level 8 in the scores dialog