Fix #5226
This commit is contained in:
parent
80b2189450
commit
263c2d62c8
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import android.location.LocationManager;
|
|||
import android.os.PowerManager.WakeLock;
|
||||
|
||||
public class OnNavigationServiceAlarmReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
final WakeLock lock = NavigationService.getLock(context);
|
||||
final NavigationService service = ((OsmandApplication) context.getApplicationContext()).getNavigationService();
|
||||
|
@ -38,4 +38,4 @@ public class OnNavigationServiceAlarmReceiver extends BroadcastReceiver {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1130,7 +1130,7 @@ public class OsmandSettings {
|
|||
|
||||
{
|
||||
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.CAR, 3000);
|
||||
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.BICYCLE, 7000);
|
||||
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.BICYCLE, 5000);
|
||||
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.PEDESTRIAN, 10000);
|
||||
}
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
|
|||
settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true);
|
||||
settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);
|
||||
int interval = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();
|
||||
app.startNavigationService(NavigationService.USED_BY_GPX, interval < 30000? 0 : interval);
|
||||
app.startNavigationService(NavigationService.USED_BY_GPX, interval < 30000 ? 0 : interval);
|
||||
}
|
||||
};
|
||||
if (choice.value || map == null) {
|
||||
|
|
Loading…
Reference in a new issue