Revision 63cbccf2
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/dialogs/RubikDialogScoresPagerAdapter.java | ||
---|---|---|
107 | 107 |
{ |
108 | 108 |
for(int tab=0; tab<mNumTabs; tab++) |
109 | 109 |
{ |
110 |
if( toDoTab[tab]<=numLevels[currentTab] )
|
|
110 |
if( toDoTab[tab]<=numLevels[tab] )
|
|
111 | 111 |
{ |
112 | 112 |
mToDoTab = tab; |
113 | 113 |
mToDoLvl = toDoTab[tab]; |
... | ... | |
153 | 153 |
@Override |
154 | 154 |
public void run() |
155 | 155 |
{ |
156 |
for(int i=0; i<mNumTabs; i++) |
|
157 |
{ |
|
158 |
mViews[i].message(mess); |
|
159 |
} |
|
156 |
for(int i=0; i<mNumTabs; i++) mViews[i].message(mess); |
|
160 | 157 |
} |
161 | 158 |
}); |
162 | 159 |
} |
src/main/java/org/distorted/dialogs/RubikDialogScoresView.java | ||
---|---|---|
175 | 175 |
void message(final String mess) |
176 | 176 |
{ |
177 | 177 |
TextView text = findViewById(R.id.message_text); |
178 |
|
|
179 |
if( text!=null ) |
|
180 |
{ |
|
181 |
text.setText(mess); |
|
182 |
} |
|
178 |
if( text!=null ) text.setText(mess); |
|
183 | 179 |
} |
184 | 180 |
} |
Also available in: Unified diff
Bugfix for the Scores dialog.