From 5a06e5bf88c33c14562cb6cbf0e6fc3cb36b40d0 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 19 Jul 2020 17:21:09 +0800 Subject: Remove test notification. Rearrange Interface Settings. --- .../docilealligator/infinityforreddit/PullNotificationWorker.java | 7 ------- app/src/main/res/xml/interface_preference.xml | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java index ebabe07c..ad25f171 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java @@ -70,13 +70,6 @@ public class PullNotificationWorker extends Worker { try { List accounts = mRedditDataRoomDatabase.accountDao().getAllAccounts(); int color = mCustomThemeWrapper.getColorPrimaryLightTheme(); - NotificationManagerCompat testManager = NotificationUtils.getNotificationManager(context); - NotificationCompat.Builder test = NotificationUtils.buildNotification(testManager, - context, "Test", "Test body", "Test summary", - NotificationUtils.CHANNEL_ID_NEW_MESSAGES, - NotificationUtils.CHANNEL_NEW_MESSAGES, - NotificationUtils.getAccountGroupName("Test"), color); - testManager.notify(9765, test.build()); for (int accountIndex = 0; accountIndex < accounts.size(); accountIndex++) { Account account = accounts.get(accountIndex); diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 059d08ea..2e5c71e3 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -24,13 +24,13 @@ app:title="@string/settings_enable_bottom_app_bar_title" app:summary="@string/settings_enable_bottom_app_bar_summary" /> - - + +