Skip to content

Commit

Permalink
Update main prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Jan 8, 2025
1 parent f045627 commit 19a4722
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void setup() {
context = InstrumentationRegistry.getInstrumentation().getTargetContext();
main = mActivityRule.getActivity();
Preferences prefs = new Preferences(context);
main.updatePrefs(prefs);
prefs.setAutolockDelay(300000L);
LayerUtils.removeImageryLayers(context);
map = main.getMap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void setup() {
context = instrumentation.getTargetContext();
main = mActivityRule.getActivity();
Preferences prefs = new Preferences(context);
main.updatePrefs(prefs);
prefs.setAutolockDelay(300000L);
LayerUtils.removeImageryLayers(context);
prefs.enableSimpleActions(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void setup() {
context = instrumentation.getTargetContext();
main = mActivityRule.getActivity();
Preferences prefs = new Preferences(context);
main.updatePrefs(prefs);
prefs.setAutolockDelay(300000L);
LayerUtils.removeImageryLayers(context);
prefs.enableSimpleActions(true);
Expand Down
1 change: 1 addition & 0 deletions src/androidTest/java/de/blau/android/easyedit/WayTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void setup() {
prefDB.addAPI("Test", "Test", "", null, null, "user", "pass", API.Auth.BASIC);
prefDB.selectAPI("Test");
Preferences prefs = new Preferences(context);
main.updatePrefs(prefs);
prefs.setAutolockDelay(300000L);
LayerUtils.removeImageryLayers(context);
map = main.getMap();
Expand Down
1 change: 1 addition & 0 deletions src/androidTest/java/de/blau/android/tasks/TodoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void setup() {
main = mActivityRule.getActivity();
App.getTaskStorage().reset();
Preferences prefs = new Preferences(context);
main.updatePrefs(prefs);
prefs.setAutolockDelay(300000L);
Set<String> filter = prefs.taskFilter();
filter.add(Todo.FILTER_KEY);
Expand Down

0 comments on commit 19a4722

Please sign in to comment.