format
This commit is contained in:
parent
1247fded3b
commit
29da89e7d6
6 changed files with 4 additions and 16 deletions
|
@ -1116,7 +1116,6 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private fun silenceAlerts(): PumpEnactResult {
|
||||
// TODO filter alert types
|
||||
return podStateManager.activeAlerts?.let {
|
||||
|
|
|
@ -498,7 +498,6 @@ class OmnipodDashManagerImpl @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
override fun suspendDelivery(hasBasalBeepEnabled: Boolean): Observable<PodEvent> {
|
||||
return Observable.concat(
|
||||
observePodRunning,
|
||||
|
|
|
@ -110,5 +110,4 @@ class SuspendDeliveryCommand private constructor(
|
|||
private const val LENGTH: Short = 7
|
||||
private const val BODY_LENGTH: Byte = 5
|
||||
}
|
||||
|
||||
}
|
|
@ -650,10 +650,6 @@ class OmnipodDashOverviewFragment : DaggerFragment() {
|
|||
return sp.getBoolean(R.string.omnipod_common_preferences_automatically_silence_alerts, false)
|
||||
}
|
||||
|
||||
private fun isSuspendDeliveryButtonEnabled(): Boolean {
|
||||
return sp.getBoolean(R.string.key_omnipod_common_suspend_delivery_button_enabled, false)
|
||||
}
|
||||
|
||||
private fun displayErrorDialog(title: String, message: String, withSound: Boolean) {
|
||||
context?.let {
|
||||
ErrorHelperActivity.runAlarm(it, message, title, if (withSound) R.raw.boluserror else 0)
|
||||
|
|
|
@ -105,11 +105,6 @@
|
|||
android:title="@string/omnipod_common_preferences_category_other"
|
||||
app:initialExpandedChildrenCount="0">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/key_omnipod_common_suspend_delivery_button_enabled"
|
||||
android:title="@string/omnipod_common_preferences_suspend_delivery_button_enabled" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_omnipod_common_time_change_event_enabled"
|
||||
|
|
Loading…
Reference in a new issue