天天看點

sprd 安卓11 鬧鐘或者定時到時間提醒後,啟動deskClock對應的頁面

項目開發中,屏蔽掉了系統通知,導緻鬧鐘或者定時無提醒;是以需要鬧鐘或者定時到時間提醒後,啟動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