From ac2042bf7da213542283b00af32a95b72c363ca9 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 19 Dec 2010 01:52:48 +0000 Subject: [PATCH] Give our "send failed" notification a contant --- src/com/fsck/k9/K9.java | 1 + src/com/fsck/k9/controller/MessagingController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/K9.java b/src/com/fsck/k9/K9.java index c70e94bd7..651c37c41 100644 --- a/src/com/fsck/k9/K9.java +++ b/src/com/fsck/k9/K9.java @@ -275,6 +275,7 @@ public class K9 extends Application // Must not conflict with an account number public static final int FETCHING_EMAIL_NOTIFICATION = -5000; + public static final int SEND_FAILED_NOTIFICATION = -1500; public static final int CONNECTIVITY_ID = -3; diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index 38c01e2b6..a1d8f5f34 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -3426,7 +3426,7 @@ public class MessagingController implements Runnable configureNotification(notif, null, null, K9.NOTIFICATION_LED_SENDING_FAILURE_COLOR, K9.NOTIFICATION_LED_BLINK_FAST, true); notif.flags |= Notification.FLAG_AUTO_CANCEL; - notifMgr.notify(-1500 - account.getAccountNumber(), notif); + notifMgr.notify(K9.SEND_FAILED_NOTIFICATION - account.getAccountNumber(), notif); }