Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix opening settings app with clean state on iOS #2275

Merged
merged 4 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/patrol/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Implement `enableBluetooth` and `disableBluetooth` methods for Android > 11. (#2254)
- Implement `enableAirplaneMode` and `disableAirplaneMode` methods for Android. (#2254)
- Implement `enableLocation` and `disableLocation` methods for Android. (#2259)
- Fix opening settings app with clean state on iOS. (#2275)

## 3.9.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,8 @@
) throws {
try runAction(log) {
self.springboard.activate()
self.preferences.launch() // reset to a known state
self.preferences.activate() // Needed to make sure that settings will be opened with a clean state
self.preferences.launch()

block()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@
}
}

func enableBluetooth() throws {
func enableLocation() throws {
return try runCatching {
try automator.enableLocation()
}
}

func disableBluetooth() throws {
func disableLocation() throws {
return try runCatching {
try automator.disableLocation()
}
Expand Down
Loading