From 0c94f71defbd50759302c0ed32061b2123e04b1a Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 28 Aug 2018 15:31:27 -0500 Subject: [PATCH] Fix tests --- app/src/main/java/org/tasks/jobs/WorkManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/tasks/jobs/WorkManager.java b/app/src/main/java/org/tasks/jobs/WorkManager.java index d26776ee1..797a51328 100644 --- a/app/src/main/java/org/tasks/jobs/WorkManager.java +++ b/app/src/main/java/org/tasks/jobs/WorkManager.java @@ -130,7 +130,8 @@ public class WorkManager { enqueueUnique(TAG_MIDNIGHT_REFRESH, MidnightRefreshWork.class, midnight()); } - void scheduleNotification(long time) { + @SuppressWarnings("WeakerAccess") + public void scheduleNotification(long time) { enqueueUnique(TAG_NOTIFICATION, NotificationWork.class, time); } @@ -152,7 +153,8 @@ public class WorkManager { workManager.beginUniqueWork(key, ExistingWorkPolicy.REPLACE, builder.build()).enqueue(); } - void cancelNotifications() { + @SuppressWarnings("WeakerAccess") + public void cancelNotifications() { Timber.d("cancelNotifications"); workManager.cancelAllWorkByTag(TAG_NOTIFICATION); }