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

Commit e46d455d authored by lijuang's avatar lijuang
Browse files

Alarm: Consider RTC_POWEROFF_WAKEUP type as valid type

RTC_POWEROFF_WAKEUP type is for power off alarm. Consider it as valid
type during setting alarm.

Change-Id: Ib48ddcbe809311b1c0c1f15dac92563118dbe5e7
CRs-Fixed: 809573
parent 8f2f1868
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);
        }