项目开发中,屏蔽掉了系统通知,导致闹钟或者定时无提醒;所以需要闹钟或者定时到时间提醒后,启动deskClock对应的页面
定时提醒
+++ b/sprd/vendor/sprd/platform/packages/apps/SprdDeskClock/src/com/android/deskclock/timer/TimerService.java
private static final String ACTION_RESET_MISSED_TIMERS =
ACTION_PREFIX + "RESET_MISSED_TIMERS";
-
+ public static Context mContext;//modify by luoyalong 20210824 for open DeskClock when timer
public static Intent createTimerExpiredIntent(Context context, Timer timer) {
final int timerId = timer == null ? -1 : timer.getId();
+ mContext=context;//modify by luoyalong 20210824 for open DeskClock when timer
return new Intent(context, TimerService.class)
.setAction(ACTION_TIMER_EXPIRED)
.putExtra(EXTRA_TIMER_ID, timerId);
switch (action) {
case ACTION_UPDATE_NOTIFICATION: {
DataM