mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user