Skip to content

Commit

Permalink
Disable tracking before test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Dec 4, 2024
1 parent 6e1fb2a commit fd5b2ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/androidTest/java/de/blau/android/gpx/GpxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ public void setup() {
Map map = main.getMap();
map.setPrefs(main, prefs);
prefs.enableBarometricHeight(false);

if (main.getTracker() != null) {
main.getTracker().stopTracking(true);
main.invalidateOptionsMenu();
}

App.getDelegator().reset(true);
try (AdvancedPrefDatabase db = new AdvancedPrefDatabase(main)) {
db.deleteLayer(LayerType.GPX, null);
Expand Down

0 comments on commit fd5b2ec

Please sign in to comment.