mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-01 05:25:50 +01:00
perform check before closing openTracksObserver.finish
This commit is contained in:
parent
020c4aacd5
commit
fdfb9f57e2
@ -85,6 +85,9 @@ public class OpenTracksController extends Activity {
|
||||
|
||||
public static void stopRecording(Context context) {
|
||||
sendIntent(context, "de.dennisguse.opentracks.publicapi.StopRecording");
|
||||
GBApplication.app().getOpenTracksObserver().finish();
|
||||
OpenTracksContentObserver openTracksObserver = GBApplication.app().getOpenTracksObserver();
|
||||
if (openTracksObserver != null) {
|
||||
openTracksObserver.finish();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user