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:
Axel Uhl committed 2015-08-18 15:19:54 +02:00
1 parent 6c2feb03e4
commit 540361b129
26 files changed
+77 -46

No files matched your search

@@ -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;
@@ -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: