aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/services/NotificationService.java8
-rw-r--r--src/main/res/drawable-hdpi/ic_unlink_white_24dp.pngbin0 -> 649 bytes
-rw-r--r--src/main/res/drawable-mdpi/ic_unlink_white_24dp.pngbin0 -> 582 bytes
-rw-r--r--src/main/res/drawable-xhdpi/ic_unlink_white_24dp.pngbin0 -> 1351 bytes
-rw-r--r--src/main/res/drawable-xxhdpi/ic_unlink_white_24dp.pngbin0 -> 1232 bytes
-rw-r--r--src/main/res/drawable-xxxhdpi/ic_unlink_white_24dp.pngbin0 -> 1321 bytes
6 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java
index f95408ca2..cef240f5f 100644
--- a/src/main/java/eu/siacs/conversations/services/NotificationService.java
+++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java
@@ -556,13 +556,15 @@ public class NotificationService {
mBuilder.setWhen(0);
mBuilder.setPriority(Config.SHOW_CONNECTED_ACCOUNTS ? NotificationCompat.PRIORITY_DEFAULT : NotificationCompat.PRIORITY_MIN);
final int cancelIcon;
+ cancelIcon = R.drawable.ic_cancel_white_24dp;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mBuilder.setCategory(Notification.CATEGORY_SERVICE);
- cancelIcon = R.drawable.ic_cancel_white_24dp;
+ }
+ if (mAccount.getStatus() == Account.State.ONLINE) {
+ mBuilder.setSmallIcon(R.drawable.ic_link_white_24dp);
} else {
- cancelIcon = R.drawable.ic_action_cancel;
+ mBuilder.setSmallIcon(R.drawable.ic_unlink_white_24dp);
}
- mBuilder.setSmallIcon(R.drawable.ic_link_white_24dp);
if (Config.SHOW_DISABLE_FOREGROUND && !Config.USE_ALWAYS_FOREGROUND) {
mBuilder.addAction(cancelIcon,
mXmppConnectionService.getString(R.string.disable_foreground_service),
diff --git a/src/main/res/drawable-hdpi/ic_unlink_white_24dp.png b/src/main/res/drawable-hdpi/ic_unlink_white_24dp.png
new file mode 100644
index 000000000..da39f99bb
--- /dev/null
+++ b/src/main/res/drawable-hdpi/ic_unlink_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-mdpi/ic_unlink_white_24dp.png b/src/main/res/drawable-mdpi/ic_unlink_white_24dp.png
new file mode 100644
index 000000000..d9ec7fb99
--- /dev/null
+++ b/src/main/res/drawable-mdpi/ic_unlink_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xhdpi/ic_unlink_white_24dp.png b/src/main/res/drawable-xhdpi/ic_unlink_white_24dp.png
new file mode 100644
index 000000000..1296c60f2
--- /dev/null
+++ b/src/main/res/drawable-xhdpi/ic_unlink_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xxhdpi/ic_unlink_white_24dp.png b/src/main/res/drawable-xxhdpi/ic_unlink_white_24dp.png
new file mode 100644
index 000000000..48bc49b39
--- /dev/null
+++ b/src/main/res/drawable-xxhdpi/ic_unlink_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xxxhdpi/ic_unlink_white_24dp.png b/src/main/res/drawable-xxxhdpi/ic_unlink_white_24dp.png
new file mode 100644
index 000000000..2bbf6935b
--- /dev/null
+++ b/src/main/res/drawable-xxxhdpi/ic_unlink_white_24dp.png
Binary files differ