diff --git a/Clover/app/src/main/java/org/floens/chan/ui/service/WatchNotifier.java b/Clover/app/src/main/java/org/floens/chan/ui/service/WatchNotifier.java index 20c5a9e8..5199bb59 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/service/WatchNotifier.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/service/WatchNotifier.java @@ -151,7 +151,7 @@ public class WatchNotifier extends Service { if (list.size() == 0) { // Idle notification String message = getString(R.string.watch_idle); - return getNotificationFor(null, title, message, -1, null, false, false, null); + return getNotificationFor(null, title, message, -1, null, false, false, false, null); } else { // New posts notification String message; @@ -193,7 +193,7 @@ public class WatchNotifier extends Service { ticker = message; } - return getNotificationFor(ticker, title, message, -1, lines, makeTicker, makeSound, subject); + return getNotificationFor(ticker, title, message, -1, lines, makeTicker, makeSound, true, subject); } } @@ -211,7 +211,7 @@ public class WatchNotifier extends Service { */ @SuppressWarnings("deprecation") private Notification getNotificationFor(String tickerText, String contentTitle, String contentText, int contentNumber, - List expandedLines, boolean light, boolean makeSound, Pin target) { + List expandedLines, boolean light, boolean makeSound, boolean alert, Pin target) { Intent intent = new Intent(this, BoardActivity.class); intent.setAction(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); @@ -250,7 +250,7 @@ public class WatchNotifier extends Service { builder.setNumber(contentNumber); } - builder.setSmallIcon(R.drawable.ic_stat_notify); + builder.setSmallIcon(alert ? R.drawable.ic_stat_notify_alert : R.drawable.ic_stat_notify); Intent pauseWatching = new Intent(this, WatchNotifier.class); pauseWatching.putExtra("pause_pins", true); diff --git a/Clover/app/src/main/res/drawable-hdpi/ic_stat_notify_alert.png b/Clover/app/src/main/res/drawable-hdpi/ic_stat_notify_alert.png new file mode 100644 index 00000000..776b737c Binary files /dev/null and b/Clover/app/src/main/res/drawable-hdpi/ic_stat_notify_alert.png differ diff --git a/Clover/app/src/main/res/drawable-mdpi/ic_stat_notify_alert.png b/Clover/app/src/main/res/drawable-mdpi/ic_stat_notify_alert.png new file mode 100644 index 00000000..4ae78e6d Binary files /dev/null and b/Clover/app/src/main/res/drawable-mdpi/ic_stat_notify_alert.png differ diff --git a/Clover/app/src/main/res/drawable-xhdpi/ic_stat_notify_alert.png b/Clover/app/src/main/res/drawable-xhdpi/ic_stat_notify_alert.png new file mode 100644 index 00000000..9bc91be7 Binary files /dev/null and b/Clover/app/src/main/res/drawable-xhdpi/ic_stat_notify_alert.png differ diff --git a/Clover/app/src/main/res/drawable-xxhdpi/ic_stat_notify_alert.png b/Clover/app/src/main/res/drawable-xxhdpi/ic_stat_notify_alert.png new file mode 100644 index 00000000..ba583bc0 Binary files /dev/null and b/Clover/app/src/main/res/drawable-xxhdpi/ic_stat_notify_alert.png differ diff --git a/Clover/app/src/main/res/drawable-xxxhdpi/ic_stat_notify_alert.png b/Clover/app/src/main/res/drawable-xxxhdpi/ic_stat_notify_alert.png new file mode 100644 index 00000000..ec8a4605 Binary files /dev/null and b/Clover/app/src/main/res/drawable-xxxhdpi/ic_stat_notify_alert.png differ