Revision 10d04892
Added by Leszek Koltunski 8 months ago
src/main/java/org/distorted/dialogs/RubikDialogScoresPagerAdapter.java | ||
---|---|---|
161 | 161 |
|
162 | 162 |
synchronized(mObj) |
163 | 163 |
{ |
164 |
view = new RubikDialogScoresView(mAct, metrics.heightPixels, mIsSubmitting); |
|
164 |
view = new RubikDialogScoresView(mAct, metrics.heightPixels, mIsSubmitting, mNetworkState==NETWORK_SUCCESS );
|
|
165 | 165 |
collection.addView(view); |
166 | 166 |
|
167 | 167 |
if( mNetworkState==NETWORK_SUCCESS ) |
... | ... | |
171 | 171 |
String[][] n = mName[position]; |
172 | 172 |
int[][] tm = mTime[position]; |
173 | 173 |
|
174 |
for(int l=0; l<=num; l++) |
|
175 |
{ |
|
176 |
String title = (l==num ? mAct.getString(R.string.levelM) : mAct.getString(R.string.lv_placeholder, l+1)); |
|
177 |
LinearLayout section = view.createSection(mAct, position, title, l, c[l], n[l], tm[l]); |
|
178 |
view.addSection(mAct,section); |
|
179 |
} |
|
174 |
RubikDialogScoresThread thr = RubikDialogScoresThread.getInstance(); |
|
175 |
thr.equip(mAct,mViewPager); |
|
176 |
|
|
177 |
for(int l=0; l<=num; l++) thr.newWork(position, l, num, view, c[l], n[l], tm[l]); |
|
180 | 178 |
} |
181 | 179 |
else if( mNetworkState==NETWORK_FAILURE ) |
182 | 180 |
{ |
Also available in: Unified diff
Speed up the time when the HighScores Dialog appears