mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 09:53:06 +02:00
Bugfix: if sensors are running, do not try to start again.
Fixes #1887.
This commit is contained in:
@@ -205,6 +205,7 @@ public class TrackRecordingService extends Service implements TrackPointCreator.
|
||||
private synchronized void startSensors() {
|
||||
if (isSensorStarted()) {
|
||||
Log.i(TAG, "sensors already started; skipping");
|
||||
return;
|
||||
}
|
||||
Log.i(TAG, "startSensors");
|
||||
wakeLock = SystemUtils.acquireWakeLock(this, wakeLock);
|
||||
|
||||
Reference in New Issue
Block a user