aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-10-14 15:33:09 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-10-14 15:33:09 +0000
commit6284de74fe6529fde5c22292e6ba251000941e61 (patch)
treefa175a16f264cdb19081e90c27cd40fd8e7c261a
parentdb818d8ca86cc603b2d7e9d8cb9b90e82ff83639 (diff)
downloadinfinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar.gz
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar.bz2
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar.lz
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar.xz
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.tar.zst
infinity-for-reddit-6284de74fe6529fde5c22292e6ba251000941e61.zip
Remove test notifications.
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java14
-rw-r--r--build.gradle2
-rw-r--r--gradle/wrapper/gradle-wrapper.properties3
3 files changed, 3 insertions, 16 deletions
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<Account> accounts = mRedditDataRoomDatabase.accountDao().getAllAccounts();
int color = mCustomThemeWrapper.getColorPrimaryLightTheme();
diff --git a/build.gradle b/build.gradle
index c68c9f04..ea77b473 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:4.0.1'
+ classpath 'com.android.tools.build:gradle:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 6623300b..f000a330 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,6 @@
+#Wed Oct 14 22:46:37 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip