mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-09 13:54:37 +00:00
Compare commits
4 Commits
always-upd
...
2025.07.23
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fd7f8d573 | ||
|
|
b14bdd883e | ||
|
|
67c0b3e6d2 | ||
|
|
7e7e84ea64 |
@@ -1 +1 @@
|
||||
version: 2025.03.02-7-FDroid+25030207
|
||||
version: 2025.07.23-2-FDroid+25072302
|
||||
|
||||
@@ -34,7 +34,10 @@ import app.organicmaps.util.log.Logger;
|
||||
|
||||
public class LocationHelper implements BaseLocationProvider.Listener
|
||||
{
|
||||
private static final long INTERVAL_MS = 0;
|
||||
private static final long INTERVAL_FOLLOW_MS = 0;
|
||||
private static final long INTERVAL_NOT_FOLLOW_MS = 3000;
|
||||
private static final long INTERVAL_NAVIGATION_MS = 1000;
|
||||
private static final long INTERVAL_TRACK_RECORDING = 0;
|
||||
|
||||
private static final long AGPS_EXPIRATION_TIME_MS = 16 * 60 * 60 * 1000; // 16 hours
|
||||
private static final long LOCATION_UPDATE_TIMEOUT_MS = 30 * 1000; // 30 seconds
|
||||
@@ -315,14 +318,18 @@ public class LocationHelper implements BaseLocationProvider.Listener
|
||||
|
||||
private long calcLocationUpdatesInterval()
|
||||
{
|
||||
if (RoutingController.get().isNavigating())
|
||||
return INTERVAL_NAVIGATION_MS;
|
||||
|
||||
if (TrackRecorder.nativeIsTrackRecordingEnabled())
|
||||
return INTERVAL_TRACK_RECORDING;
|
||||
|
||||
final int mode = Map.isEngineCreated() ? LocationState.getMode() : LocationState.NOT_FOLLOW_NO_POSITION;
|
||||
return switch (mode)
|
||||
{
|
||||
case LocationState.PENDING_POSITION,
|
||||
LocationState.FOLLOW,
|
||||
LocationState.FOLLOW_AND_ROTATE,
|
||||
LocationState.NOT_FOLLOW,
|
||||
LocationState.NOT_FOLLOW_NO_POSITION -> INTERVAL_MS;
|
||||
case LocationState.PENDING_POSITION, LocationState.FOLLOW, LocationState.FOLLOW_AND_ROTATE ->
|
||||
INTERVAL_FOLLOW_MS;
|
||||
case LocationState.NOT_FOLLOW, LocationState.NOT_FOLLOW_NO_POSITION -> INTERVAL_NOT_FOLLOW_MS;
|
||||
default -> throw new IllegalArgumentException("Unsupported location mode: " + mode);
|
||||
};
|
||||
}
|
||||
|
||||
4620
data/countries.txt
4620
data/countries.txt
File diff suppressed because it is too large
Load Diff
@@ -25,8 +25,7 @@ When reporting a bug please provide as much information as possible: OS and appl
|
||||
list of actions leading to a bug, a log file produced by the app.
|
||||
|
||||
When using CoMaps app on a device, use the built-in "Report a bug" option:
|
||||
on Android it creates a new e-mail with a log file attached. Your issue will be processed much
|
||||
faster if you send it to <bugs@comaps.app>. Enabling logs in CoMaps settings on Android
|
||||
on Android it creates a new e-mail with a log file attached. Enabling logs in CoMaps settings on Android
|
||||
before sending the bug report also helps us a lot with debugging.
|
||||
|
||||
### Translations
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Concatenates Android release notes in all languages into a single output format
|
||||
# suitable to upload to Google Play to update existing notes.
|
||||
# suitable to upload to Google Play to add or update existing notes.
|
||||
|
||||
GPLAY_NOTES=android/app/src/google/play/release-notes/*/default.txt
|
||||
# Original relnotes files:
|
||||
GPLAY_NOTES=android/app/src/fdroid/play/listings/*/release-notes.txt
|
||||
# also symlinked for Triple-T automation to android/app/src/google/play/release-notes/*/default.txt
|
||||
|
||||
for x in $(ls $GPLAY_NOTES); do
|
||||
l=$(basename $(dirname $x));
|
||||
|
||||
Reference in New Issue
Block a user