mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Give our "send failed" notification a contant
This commit is contained in:
parent
ab5caba92c
commit
dbe4bea290
@ -275,6 +275,7 @@ public class K9 extends Application
|
|||||||
|
|
||||||
// Must not conflict with an account number
|
// Must not conflict with an account number
|
||||||
public static final int FETCHING_EMAIL_NOTIFICATION = -5000;
|
public static final int FETCHING_EMAIL_NOTIFICATION = -5000;
|
||||||
|
public static final int SEND_FAILED_NOTIFICATION = -1500;
|
||||||
public static final int CONNECTIVITY_ID = -3;
|
public static final int CONNECTIVITY_ID = -3;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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);
|
configureNotification(notif, null, null, K9.NOTIFICATION_LED_SENDING_FAILURE_COLOR, K9.NOTIFICATION_LED_BLINK_FAST, true);
|
||||||
notif.flags |= Notification.FLAG_AUTO_CANCEL;
|
notif.flags |= Notification.FLAG_AUTO_CANCEL;
|
||||||
notifMgr.notify(-1500 - account.getAccountNumber(), notif);
|
notifMgr.notify(K9.SEND_FAILED_NOTIFICATION - account.getAccountNumber(), notif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user