Skip to content
Snippets Groups Projects
Commit efbf1611 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Make notifications not intrusives on Oreo

parent f5e24037
No related branches found
No related tags found
No related merge requests found
......@@ -176,14 +176,14 @@ public class NotificationHelper {
// Playback channel
CharSequence name = VLCApplication.getAppResources().getString(R.string.playback);
String description = VLCApplication.getAppResources().getString(R.string.playback_controls);
NotificationChannel channel = new NotificationChannel("vlc_playback", name, NotificationManager.IMPORTANCE_DEFAULT);
NotificationChannel channel = new NotificationChannel("vlc_playback", name, NotificationManager.IMPORTANCE_LOW);
channel.setDescription(description);
channel.setLockscreenVisibility(Notification.VISIBILITY_PUBLIC);
sNotificationManager.createNotificationChannel(channel);
// Scan channel
name = VLCApplication.getAppResources().getString(R.string.medialibrary_scan);
description = VLCApplication.getAppResources().getString(R.string.Medialibrary_progress);
channel = new NotificationChannel("vlc_medialibrary", name, NotificationManager.IMPORTANCE_DEFAULT);
channel = new NotificationChannel("vlc_medialibrary", name, NotificationManager.IMPORTANCE_LOW);
channel.setDescription(description);
channel.setLockscreenVisibility(Notification.VISIBILITY_PUBLIC);
sNotificationManager.createNotificationChannel(channel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment