From 6284de74fe6529fde5c22292e6ba251000941e61 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 14 Oct 2020 23:33:09 +0800 Subject: Remove test notifications. --- .../infinityforreddit/PullNotificationWorker.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java index 75a9d4f0..1b1134b9 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java @@ -4,9 +4,7 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; -import android.graphics.Color; import android.net.Uri; -import android.util.Log; import androidx.annotation.NonNull; import androidx.core.app.NotificationCompat; @@ -24,7 +22,6 @@ import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Random; import javax.inject.Inject; import javax.inject.Named; @@ -71,17 +68,6 @@ public class PullNotificationWorker extends Worker { @NonNull @Override public Result doWork() { - Log.i("asasdfsdaf", "time: " + System.currentTimeMillis()); - - NotificationManagerCompat testNotificationManager = NotificationUtils.getNotificationManager(context); - - NotificationCompat.Builder testSummaryBuilder = NotificationUtils.buildSummaryNotification(context, - testNotificationManager, "test", - context.getString(R.string.notification_new_messages, 12), - NotificationUtils.CHANNEL_ID_NEW_MESSAGES, NotificationUtils.CHANNEL_NEW_MESSAGES, - NotificationUtils.getAccountGroupName("test"), Color.BLACK); - testNotificationManager.notify(new Random().nextInt(10000), testSummaryBuilder.build()); - try { List accounts = mRedditDataRoomDatabase.accountDao().getAllAccounts(); int color = mCustomThemeWrapper.getColorPrimaryLightTheme(); -- cgit v1.2.3