Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
#123 fixed, #121 fixed (probably)
Browse files Browse the repository at this point in the history
  • Loading branch information
indywidualny committed Feb 5, 2016
1 parent 79ca27a commit 29cac21
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ private void notifier(String title, String summary, String url, boolean isMessag
// vibration
if (trayPreferences.getBoolean("vibrate", false))
mBuilder.setVibrate(new long[] {500, 500});
else
mBuilder.setVibrate(new long[] {0l});

// LED light
if (trayPreferences.getBoolean("led_light", false))
Expand All @@ -460,6 +462,10 @@ private void notifier(String title, String summary, String url, boolean isMessag
mBuilder.setOngoing(false);
Notification note = mBuilder.build();

// LED light flag
if (trayPreferences.getBoolean("led_light", false))
note.flags |= Notification.FLAG_SHOW_LIGHTS;

// display a notification
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

Expand Down

0 comments on commit 29cac21

Please sign in to comment.