diff --git a/app/release/baselineProfiles/0/app-release.dm b/app/release/baselineProfiles/0/app-release.dm new file mode 100644 index 00000000..2d1a098b Binary files /dev/null and b/app/release/baselineProfiles/0/app-release.dm differ diff --git a/app/release/baselineProfiles/1/app-release.dm b/app/release/baselineProfiles/1/app-release.dm new file mode 100644 index 00000000..defe04a4 Binary files /dev/null and b/app/release/baselineProfiles/1/app-release.dm differ diff --git a/app/src/main/java/com/bnyro/clock/util/AlarmHelper.kt b/app/src/main/java/com/bnyro/clock/util/AlarmHelper.kt index a8b980c7..42dea581 100644 --- a/app/src/main/java/com/bnyro/clock/util/AlarmHelper.kt +++ b/app/src/main/java/com/bnyro/clock/util/AlarmHelper.kt @@ -17,7 +17,6 @@ import java.util.GregorianCalendar object AlarmHelper { const val EXTRA_ID = "alarm_id" - private const val HOUR_IN_MILLIS = 60 * 60 * 1000 @SuppressLint("ScheduleExactAlarm") fun enqueue(context: Context, alarm: Alarm) { @@ -91,9 +90,9 @@ object AlarmHelper { if (calendar.timeZone.useDaylightTime()) { if (calendar.timeZone.inDaylightTime(now) && !calendar.timeZone.inDaylightTime(calendar.time)) { - calendar.timeInMillis += HOUR_IN_MILLIS + calendar.timeInMillis += calendar.timeZone.dstSavings } else if (!calendar.timeZone.inDaylightTime(now) && calendar.timeZone.inDaylightTime(calendar.time)) { - calendar.timeInMillis -= HOUR_IN_MILLIS + calendar.timeInMillis -= calendar.timeZone.dstSavings } } }