|
|
|
@ -210,7 +210,8 @@ public class NotificationManager { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void clearNotifications(Context context) { |
|
|
|
|
public static void clearNotifications(@Nullable Context context) { |
|
|
|
|
if(context != null) { |
|
|
|
|
SharedPreferences notificationPreferences = |
|
|
|
|
context.getSharedPreferences("Notifications", Context.MODE_PRIVATE); |
|
|
|
|
notificationPreferences.edit().putString("current", "[]").apply(); |
|
|
|
@ -220,6 +221,7 @@ public class NotificationManager { |
|
|
|
|
//noinspection ConstantConditions
|
|
|
|
|
manager.cancel(NotificationPullJobCreator.NOTIFY_ID); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static boolean filterNotification(SharedPreferences preferences, |
|
|
|
|
Notification notification) { |
|
|
|
|