Skip to content

Commit d6fbcaa

Browse files
committed
Merge fixes
1 parent 71782cc commit d6fbcaa

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Loop/Managers/Alerts/AlertManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ extension AlertManager: AlertPermissionsCheckerDelegate {
785785

786786
extension AlertManager {
787787
func presentConfirmCrashAlert(confirmAction: @escaping (@escaping () -> Void) -> Void) {
788-
let alert = UIAlertController(title: "New Study Product Detected", message: "We've detected a new study product is selected. In order to show use this study product, Tidepool Loop will need to restart.", preferredStyle: .alert)
788+
let alert = UIAlertController(title: "New Study Product Detected", message: "We've detected a new study product is selected. In order to show use this study product, Loop will need to restart.", preferredStyle: .alert)
789789
alert.addAction(UIAlertAction(title: "Confirm", style: .default, handler: { _ in
790790
confirmAction() {
791791
fatalError("DEBUG: Resetting Loop")
@@ -797,7 +797,7 @@ extension AlertManager {
797797
}
798798

799799
func presentCouldNotResetLoopAlert(error: Error) {
800-
let alert = UIAlertController(title: "Could Not Restart Tidepool Loop", message: "While trying to restart Tidepool Loop an error occured.\n\n\(error.localizedDescription)", preferredStyle: .alert)
800+
let alert = UIAlertController(title: "Could Not Restart Loop", message: "While trying to restart Loop an error occured.\n\n\(error.localizedDescription)", preferredStyle: .alert)
801801
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
802802

803803
alertPresenter.present(alert, animated: true)

Loop/Views/HowMuteAlertWorkView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ When using Mute Alerts, also consider the impact of using iOS Focus Modes.
3232
.background(guidanceColors.warning)
3333
.clipShape(RoundedRectangle(cornerRadius: 5, style: .continuous))
3434

35-
Text(NSLocalizedString("Tidepool Loop Mute Alerts", comment: "Section title for description that mute alerts is temporary"))
35+
Text(NSLocalizedString("Loop Mute Alerts", comment: "Section title for description that mute alerts is temporary"))
3636
.bold()
3737
.fixedSize(horizontal: false, vertical: true)
3838
}
@@ -52,7 +52,7 @@ After the mute period ends, your alert sounds will resume.
5252
Text(NSLocalizedString("iOS Focus Mode", comment: "Section title for description of how mute alerts work with focus mode"))
5353
.bold()
5454
}
55-
Text(NSLocalizedString("If iOS Focus Mode is ON and Mute Alerts is OFF, Critical Alerts will still be delivered, but non-Critical Alerts will be silenced until Tidepool Loop is added to each Focus mode as an Allowed App.", comment: "Description of how mute alerts works with focus mode"))
55+
Text(NSLocalizedString("If iOS Focus Mode is ON and Mute Alerts is OFF, Critical Alerts will still be delivered, but non-Critical Alerts will be silenced until Loop is added to each Focus mode as an Allowed App.", comment: "Description of how mute alerts works with focus mode"))
5656
.fixedSize(horizontal: false, vertical: true)
5757
}
5858
.padding()

StatusWidget/StatusWidget.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ extension Date {
223223
}
224224
}
225225

226-
#if NOT_USED_IN_TIDEPOOL_LOOP
227226
struct SmallStatusWidget: Widget {
228227
let kind: String = "SmallStatusWidget"
229228

@@ -236,13 +235,10 @@ struct SmallStatusWidget: Widget {
236235
.supportedFamilies([.systemSmall])
237236
}
238237
}
239-
#endif
240238

241239
@main
242240
struct SmallStatusWidgets: WidgetBundle {
243241
var body: some Widget {
244-
#if NOT_USED_IN_TIDEPOOL_LOOP
245242
SmallStatusWidget()
246-
#endif
247243
}
248244
}

0 commit comments

Comments
 (0)