diff options
| author | Michael W <baddaemon87@gmail.com> | 2017-08-24 22:27:00 +0200 |
|---|---|---|
| committer | SpiritCroc <spiritcroc@gmail.com> | 2017-08-26 08:57:04 +0200 |
| commit | 621b6500819305dd2bfb97c53553a71843f85600 (patch) | |
| tree | 007474f9f34b0208d1236efefffca2469d6f13ca /src/com/android/mail/preferences/notifications/LightSettingsDialog.java | |
| parent | 52499d20a6f6b9a1d08104d3ec6dcd0e2962d3ce (diff) | |
* Enabling LED notifications for email crashes the app because the
notification manager requires a small icon in order to post the
notification
* Add one to get rid of the crash
(* The notification is only shown for preview purposes so no need for a
title or text)
BUGBASH-423
Change-Id: Ie70f82cbfbf87dc17def215d9fff334fbeba95b0
Diffstat (limited to 'src/com/android/mail/preferences/notifications/LightSettingsDialog.java')
| -rw-r--r-- | src/com/android/mail/preferences/notifications/LightSettingsDialog.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/mail/preferences/notifications/LightSettingsDialog.java b/src/com/android/mail/preferences/notifications/LightSettingsDialog.java index 4abfe353a..a2c6538fe 100644 --- a/src/com/android/mail/preferences/notifications/LightSettingsDialog.java +++ b/src/com/android/mail/preferences/notifications/LightSettingsDialog.java @@ -315,6 +315,7 @@ public class LightSettingsDialog extends AlertDialog implements final Notification.Builder builder = new Notification.Builder(getContext()); builder.setLights(color, speedOn, speedOff); + builder.setSmallIcon(R.drawable.ic_email); builder.setExtras(b); mNotificationManager.notify(R.layout.notification_pulse_time_item, builder.build()); |
