Revision 9f5e08ac
Added by Leszek Koltunski almost 5 years ago
src/main/java/org/distorted/dialog/RubikDialogScoresPagerAdapter.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
private void addPage(final RubikDialogScoresView view, final int[][] country, final String[][] name, final String[][] time) |
88 | 88 |
{ |
89 |
for(int section = 0; section< RubikStatePlay.MAX_SCRAMBLE; section++)
|
|
89 |
for(int i=0; i<RubikStatePlay.MAX_SCRAMBLE; i++)
|
|
90 | 90 |
{ |
91 |
final int sec = section; |
|
92 |
final int[] c = country[section]; |
|
93 |
final String[] n = name[section]; |
|
94 |
final String[] t = time[section]; |
|
95 |
|
|
96 |
final LinearLayout layout = view.createSection(mAct, sec, c, n, t); |
|
91 |
final LinearLayout section = view.createSection(mAct, i, country[i], name[i], time[i]); |
|
97 | 92 |
|
98 | 93 |
mAct.runOnUiThread(new Runnable() |
99 | 94 |
{ |
100 | 95 |
@Override |
101 | 96 |
public void run() |
102 | 97 |
{ |
103 |
view.addSection(layout);
|
|
98 |
view.addSection(section);
|
|
104 | 99 |
} |
105 | 100 |
}); |
106 | 101 |
|
Also available in: Unified diff
Minor improvement.