Skip to content

Commit

Permalink
Merge pull request #749 from OneBusAway/dependencies
Browse files Browse the repository at this point in the history
Make ridiculous changes to how we ask for location services to placat…
  • Loading branch information
aaronbrethorst authored Oct 1, 2024
2 parents b5afb2c + f0c5039 commit 9b79182
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion OBAKit/Mapping/MapViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class MapViewController: UIViewController,

switch mapStatusViewState {
case .notDetermined:
alert.addAction(title: OBALoc("locationservices_alert_request_access.button", value: "Allow Access to Location", comment: "")) { _ in
alert.addAction(title: Strings.continue) { _ in
self.application.locationService.requestInUseAuthorization()
}
alert.addAction(keepLocationOffButton)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ public struct RegionPickerLocationAuthorizationView<Provider: RegionProvider>: V
.cornerRadius(8)
.labelStyle(.titleAndIcon)
.foregroundColor(.white)

Button {
regionProvider.automaticallySelectRegion = false
dismiss()
} label: {
Label(OBALoc("location_permission_bulletin.do_not_use_location_button_text", value: "Don't use my location", comment: "Button the user can tap on to disallow access to their location."), systemImage: "location.slash")
}
}
.symbolVariant(.fill)
.tint(.blue) // .accentColor might fail LocationButton's contrast test, so we'll just use the standard blue.
Expand Down
3 changes: 0 additions & 3 deletions OBAKit/Strings/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@
/* No comment provided by engineer. */
"locationservices_alert_off.title" = "OneBusAway works best with your location.";

/* No comment provided by engineer. */
"locationservices_alert_request_access.button" = "Allow Access to Location";

/* No comment provided by engineer. */
"locationservices_alert_request_precise_location_once.button" = "Allow Once";

Expand Down
Binary file modified OBAKit/Strings/es.lproj/Localizable.strings
Binary file not shown.
Binary file modified OBAKit/Strings/it.lproj/Localizable.strings
Binary file not shown.
Binary file modified OBAKit/Strings/pl.lproj/Localizable.strings
Binary file not shown.
Binary file modified OBAKit/Strings/zh-Hans.lproj/Localizable.strings
Binary file not shown.

0 comments on commit 9b79182

Please sign in to comment.