Revision 4895fff6
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialog/RubikDialogScoresView.java | ||
---|---|---|
57 | 57 |
|
58 | 58 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
59 | 59 |
|
60 |
public RubikDialogScoresView(Context context) |
|
60 |
public RubikDialogScoresView(Context context, boolean isSubmitting)
|
|
61 | 61 |
{ |
62 | 62 |
super(context); |
63 | 63 |
|
64 | 64 |
View view = inflate(context, R.layout.dialog_scores_downloading, null); |
65 | 65 |
addView(view); |
66 |
TextView text = findViewById(R.id.message_text); |
|
67 |
text.setText( context.getString(isSubmitting ? R.string.submitting : R.string.downloading) ); |
|
66 | 68 |
} |
67 | 69 |
|
68 | 70 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
163 | 165 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
164 | 166 |
// needs to run on UI thread |
165 | 167 |
|
166 |
void exception(final String exce)
|
|
168 |
void message(final String mess)
|
|
167 | 169 |
{ |
168 |
TextView text = findViewById(R.id.downloading_text);
|
|
169 |
text.setText(exce);
|
|
170 |
TextView text = findViewById(R.id.message_text);
|
|
171 |
text.setText(mess);
|
|
170 | 172 |
} |
171 | 173 |
} |
Also available in: Unified diff
Beginnings of submitting one's high scores.