mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
on the way to a fix for bug 3237, introduced isMagnetic on RaceLogWindFixEvent; code currently doesn't compile; unclear where to obtain DeclinationService from
This commit is contained in:
1 parent
6c2feb03e4
commit
540361b129
26 files changed
+77
-46
No files matched your search
+1
-1
@@ -302,7 +302,7 @@ public class RacingActivity extends SessionActivity implements RaceInfoListener,
|
||||
windValue.setText(String.format(getString(R.string.wind_info), windFix.getKnots(), windFix.getBearing().reverse().toString()));
|
||||
}
|
||||
if (mSelectedRace != null) {
|
||||
mSelectedRace.getState().setWindFix(MillisecondsTimePoint.now(), windFix);
|
||||
mSelectedRace.getState().setWindFix(MillisecondsTimePoint.now(), windFix, /* isMagnetic */ true);
|
||||
}
|
||||
|
||||
mWind = windFix;
|
||||
|
||||
+1
-1
@@ -410,7 +410,7 @@ public class WindFragment extends BaseFragment
|
||||
*/
|
||||
private void onSendClick() {
|
||||
Wind wind = getResultingWindFix();
|
||||
getRaceState().setWindFix(MillisecondsTimePoint.now(), wind);
|
||||
getRaceState().setWindFix(MillisecondsTimePoint.now(), wind, /* isMagnetic */ true);
|
||||
saveEntriesInPreferences(wind);
|
||||
switch (getArguments().getInt(START_MODE, 0)) {
|
||||
case 1:
|
||||
|
||||
Reference in new issue
Block a user