@@ -349,10 +349,10 @@ protected void performNotificationScheduling(int id, Notification.Builder notifi
349
349
}
350
350
351
351
void scheduleAlarmWithNotification (Notification .Builder notificationBuilder , Intent intent , long fireTime ) {
352
- scheduleAlarmWithNotification (mContext , mOpenActivity , notificationBuilder , intent , fireTime );
352
+ scheduleAlarmWithNotification (mOpenActivity , notificationBuilder , intent , fireTime );
353
353
}
354
354
355
- static void scheduleAlarmWithNotification (Context context , Class activityClass , Notification .Builder notificationBuilder , Intent intent , long fireTime ) {
355
+ private void scheduleAlarmWithNotification (Class activityClass , Notification .Builder notificationBuilder , Intent intent , long fireTime ) {
356
356
Bundle extras = notificationBuilder .getExtras ();
357
357
int id = extras .getInt (KEY_ID , -1 );
358
358
long repeatInterval = extras .getLong (KEY_REPEAT_INTERVAL , -1 );
@@ -362,8 +362,8 @@ static void scheduleAlarmWithNotification(Context context, Class activityClass,
362
362
mScheduledNotifications .putIfAbsent (Integer .valueOf (id ), notificationBuilder );
363
363
intent .putExtra (KEY_NOTIFICATION_ID , id );
364
364
365
- PendingIntent broadcast = getBroadcastPendingIntent (context , id , intent , PendingIntent .FLAG_UPDATE_CURRENT );
366
- UnityNotificationManager .scheduleNotificationIntentAlarm (context , repeatInterval , fireTime , broadcast );
365
+ PendingIntent broadcast = getBroadcastPendingIntent (mContext , id , intent , PendingIntent .FLAG_UPDATE_CURRENT );
366
+ UnityNotificationManager .scheduleNotificationIntentAlarm (mContext , repeatInterval , fireTime , broadcast );
367
367
}
368
368
369
369
void scheduleAlarmWithNotification (Notification .Builder notificationBuilder ) {
@@ -378,7 +378,7 @@ void scheduleAlarmWithNotification(Notification.Builder notificationBuilder) {
378
378
openActivity = mUnityNotificationManager .mOpenActivity ;
379
379
}
380
380
381
- scheduleAlarmWithNotification (mContext , openActivity , notificationBuilder , intent , fireTime );
381
+ scheduleAlarmWithNotification (openActivity , notificationBuilder , intent , fireTime );
382
382
}
383
383
384
384
private Notification buildNotificationForSending (Class openActivity , Notification .Builder builder ) {
0 commit comments