stv.post(r);
}
+ private void doSetFlagsLabel(final CtFwSGameStateManager gs) {
+ final TextView tv_flags = mAct.findViewById(R.id.tv_flags_label);
+ tv_flags.post(new Runnable() {
+ @Override
+ public void run() {
+ tv_flags.setText(mAct.getResources()
+ .getQuantityString(R.plurals.ctfws_flags,
+ gs.getFlagsTotal(),
+ gs.getFlagsTotal()));
+ }
+ });
+ }
+
@Override
public void onCtFwSConfigure(final CtFwSGameStateManager gs) {
doSetGameStateLabelText(gs, null);
doSetSidesText(gs);
+ doSetFlagsLabel(gs);
}
@Override
doSetGameStateLabelText(gs, now);
doSetSidesText(gs);
+ doSetFlagsLabel(gs);
if (now.rationale != CtFwSGameStateManager.NowRationale.NR_GAME_IN_PROGRESS) {
Log.d("CtFwS", "Rationale: " + now.rationale + " stop=" + now.stop);
}
});
}
- {
- final TextView tv_flags = mAct.findViewById(R.id.tv_flags_label);
- tv_flags.post(new Runnable() {
- @Override
- public void run() {
- tv_flags.setText(mAct.getResources()
- .getQuantityString(R.plurals.ctfws_flags,
- gs.getFlagsTotal(),
- gs.getFlagsTotal()));
- }
- });
- }
}
private void doReset() {