diff --git a/app/src/main/java/info/nightscout/androidaps/utils/TimerUtil.kt b/app/src/main/java/info/nightscout/androidaps/utils/TimerUtil.kt
index 4f0ce09609..b62f00df54 100644
--- a/app/src/main/java/info/nightscout/androidaps/utils/TimerUtil.kt
+++ b/app/src/main/java/info/nightscout/androidaps/utils/TimerUtil.kt
@@ -14,12 +14,14 @@ class TimerUtil @Inject constructor(
private val resourceHelper: ResourceHelper,
) {
- fun scheduleReminder(time: Long, text: String? = null) = Intent(AlarmClock.ACTION_SET_TIMER).apply {
- val length: Int = ((time - DateUtil.now()) / 1000).toInt()
- flags = flags or Intent.FLAG_ACTIVITY_NEW_TASK
- putExtra(AlarmClock.EXTRA_LENGTH, length)
- putExtra(AlarmClock.EXTRA_SKIP_UI, true)
- putExtra(AlarmClock.EXTRA_MESSAGE, text ?: resourceHelper.gs(R.string.app_name))
- context.startActivity(this)
+ fun scheduleReminder(time: Long, text: String? = null) {
+ Intent(AlarmClock.ACTION_SET_TIMER).apply {
+ val length: Int = ((time - DateUtil.now()) / 1000).toInt()
+ flags = flags or Intent.FLAG_ACTIVITY_NEW_TASK
+ putExtra(AlarmClock.EXTRA_LENGTH, length)
+ putExtra(AlarmClock.EXTRA_SKIP_UI, true)
+ putExtra(AlarmClock.EXTRA_MESSAGE, text ?: resourceHelper.gs(R.string.app_name))
+ context.startActivity(this)
+ }
}
}
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_carbs.xml b/app/src/main/res/layout/dialog_carbs.xml
index 6b7ffdde26..f0f306c6ff 100644
--- a/app/src/main/res/layout/dialog_carbs.xml
+++ b/app/src/main/res/layout/dialog_carbs.xml
@@ -100,6 +100,12 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="bold" />
+
+
-
-