mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 14:50:56 +00:00
don't send a remove recall flag event in the RaceFlagViewerFragment
This commit is contained in:
1 parent
d852134642
commit
c01ae31ed4
1 file changed
+2
-7
+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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user