Skip to content

Commit a500f89

Browse files
committed
Make scheduleNotificationIntentAlarm private instance method
1 parent fd67f25 commit a500f89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.mobile.notifications/Runtime/Android/Plugins/com/unity/androidnotifications/UnityNotificationManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ private void scheduleAlarmWithNotification(Class activityClass, Notification.Bui
363363
intent.putExtra(KEY_NOTIFICATION_ID, id);
364364

365365
PendingIntent broadcast = getBroadcastPendingIntent(id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
366-
UnityNotificationManager.scheduleNotificationIntentAlarm(mContext, repeatInterval, fireTime, broadcast);
366+
scheduleNotificationIntentAlarm(repeatInterval, fireTime, broadcast);
367367
}
368368

369369
void scheduleAlarmWithNotification(Notification.Builder notificationBuilder) {
@@ -546,8 +546,8 @@ private static boolean canScheduleExactAlarms(AlarmManager alarmManager) {
546546
}
547547

548548
// Call AlarmManager to set the broadcast intent with fire time and interval.
549-
protected static void scheduleNotificationIntentAlarm(Context context, long repeatInterval, long fireTime, PendingIntent broadcast) {
550-
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
549+
private void scheduleNotificationIntentAlarm(long repeatInterval, long fireTime, PendingIntent broadcast) {
550+
AlarmManager alarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
551551

552552
if (repeatInterval <= 0) {
553553
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && canScheduleExactAlarms(alarmManager)) {

0 commit comments

Comments
 (0)