Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac057a0 authored by Abhishek Arpure's avatar Abhishek Arpure
Browse files

RTC_POWEROFF_WAKEUP alarm type not supported by AlarmManager

Due to MR1 merge conflicts, AlarmManager is throwing exception
for RTC_POWEROFF_WAKEUP type alarms. Add support for
RTC_POWEROFF_WAKEUP.

CRs-Fixed: 807446
Change-Id: Ifbf8710ba68ca55251d0c8b35593f0b21ff85beb
parent c5201b63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -744,7 +744,7 @@ class AlarmManagerService extends SystemService {
            interval = MIN_INTERVAL;
        }

        if (type < RTC_WAKEUP || type > ELAPSED_REALTIME) {
        if (type < RTC_WAKEUP || type > RTC_POWEROFF_WAKEUP) {
            throw new IllegalArgumentException("Invalid alarm type " + type);
        }