Skip to content

Commit

Permalink
fix notification channel
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsguy committed Aug 4, 2018
1 parent 1f836aa commit bd745d9
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ public void onHandleIntent(Intent i) {

if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.O &&
mgr.getNotificationChannel(CHANNEL_WHATEVER)==null) {
mgr.createNotificationChannel(new NotificationChannel(CHANNEL_WHATEVER,
"Whatever", NotificationManager.IMPORTANCE_DEFAULT));

NotificationChannel c=new NotificationChannel(CHANNEL_WHATEVER,
"Whatever", NotificationManager.IMPORTANCE_DEFAULT);

c.enableLights(true);
c.setLightColor(0xFFFF0000);

mgr.createNotificationChannel(c);
}

String filename=i.getData().getLastPathSegment();
Expand Down

0 comments on commit bd745d9

Please sign in to comment.