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 {
String time = getString(R.string.until_xray_removed);
if (mXrayCountdown != null) {
if (mXrayCountdown != null && mRecall != null) {
TimePoint flagDown = procedure.getIndividualRecallRemovalTime();
if (timePoint.before(flagDown)) {
time = time.replace("#TIME#", TimeUtils.formatDurationUntil(flagDown.minus(timePoint.asMillis()).asMillis()).replace("-", ""));
mXrayCountdown.setText(time);
} else {
procedure.removeIndividualRecall(timePoint);
mRecall.setVisibility(View.VISIBLE);
}
}
if (mRecall != null) {
mRecall.setVisibility(View.VISIBLE);
}
}
}