Skip to content

Commit 138fa6a

Browse files
committed
Force awake notification, if possible.
1 parent b8f358e commit 138fa6a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/android/notification/Notification.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,21 +221,21 @@ void schedule(Request request, Class<?> receiver) {
221221
context, 0, intent, FLAG_CANCEL_CURRENT);
222222

223223
try {
224-
switch (options.getPrio()) {
225-
case PRIORITY_MIN:
226-
mgr.setExact(RTC, time, pi);
227-
break;
228-
case PRIORITY_MAX:
224+
//switch (options.getPrio()) {
225+
// case PRIORITY_MIN:
226+
// mgr.setExact(RTC, time, pi);
227+
// break;
228+
// case PRIORITY_MAX:
229229
if (SDK_INT >= M) {
230230
mgr.setExactAndAllowWhileIdle(RTC_WAKEUP, time, pi);
231231
} else {
232232
mgr.setExact(RTC, time, pi);
233233
}
234-
break;
235-
default:
236-
mgr.setExact(RTC_WAKEUP, time, pi);
237-
break;
238-
}
234+
// break;
235+
// default:
236+
// mgr.setExact(RTC_WAKEUP, time, pi);
237+
// break;
238+
//}
239239
} catch (Exception ignore) {
240240
// Samsung devices have a known bug where a 500 alarms limit
241241
// can crash the app

0 commit comments

Comments
 (0)