Skip to content

Commit 13b1c62

Browse files
committed
Make getScheduledNotificationIDs private intance method
1 parent a500f89 commit 13b1c62

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
@@ -500,7 +500,7 @@ static String getSharedPrefsNameByNotificationId(String id)
500500

501501
// Load all the notification intents from SharedPreferences.
502502
synchronized List<Notification.Builder> loadSavedNotifications() {
503-
Set<String> ids = getScheduledNotificationIDs(mContext);
503+
Set<String> ids = getScheduledNotificationIDs();
504504

505505
List<Notification.Builder> intent_data_list = new ArrayList();
506506
Set<String> idsMarkedForRemoval = new HashSet<String>();
@@ -593,8 +593,8 @@ public void cancelAllPendingNotificationIntents() {
593593
mBackgroundThread.enqueueCancelAllNotifications();
594594
}
595595

596-
protected static synchronized Set<String> getScheduledNotificationIDs(Context context) {
597-
SharedPreferences prefs = context.getSharedPreferences(NOTIFICATION_IDS_SHARED_PREFS, Context.MODE_PRIVATE);
596+
private synchronized Set<String> getScheduledNotificationIDs() {
597+
SharedPreferences prefs = mContext.getSharedPreferences(NOTIFICATION_IDS_SHARED_PREFS, Context.MODE_PRIVATE);
598598
Set<String> ids = prefs.getStringSet(NOTIFICATION_IDS_SHARED_PREFS_KEY, new HashSet<String>());
599599
return ids;
600600
}

0 commit comments

Comments
 (0)