don't send a remove recall flag event in the RaceFlagViewerFragment

This commit is contained in:
Peter Siegmund committed 2015-06-22 14:22:53 +02:00
1 parent d852134642
commit c01ae31ed4
1 file changed
+2 -7
@@ -110,19 +110,14 @@ public class RaceFlagViewerFragment extends BaseFragment {
} }
} else { } else {
String time = getString(R.string.until_xray_removed); String time = getString(R.string.until_xray_removed);
if (mXrayCountdown != null) { if (mXrayCountdown != null && mRecall != null) {
TimePoint flagDown = procedure.getIndividualRecallRemovalTime(); TimePoint flagDown = procedure.getIndividualRecallRemovalTime();
if (timePoint.before(flagDown)) { if (timePoint.before(flagDown)) {
time = time.replace("#TIME#", TimeUtils.formatDurationUntil(flagDown.minus(timePoint.asMillis()).asMillis()).replace("-", "")); time = time.replace("#TIME#", TimeUtils.formatDurationUntil(flagDown.minus(timePoint.asMillis()).asMillis()).replace("-", ""));
mXrayCountdown.setText(time); mXrayCountdown.setText(time);
} else { mRecall.setVisibility(View.VISIBLE);
procedure.removeIndividualRecall(timePoint);
} }
} }
if (mRecall != null) {
mRecall.setVisibility(View.VISIBLE);
}
} }
} }