Commit 67b84a2e authored by Geoffrey Métais's avatar Geoffrey Métais

Set categories to notifications

parent 039eb11e
......@@ -277,6 +277,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setContentTitle(getString(R.string.ml_scanning))
.setAutoCancel(false)
.setCategory(NotificationCompat.CATEGORY_PROGRESS)
.setOngoing(true);
}
String progressText = sb.toString();
......
......@@ -919,6 +919,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
.setTicker(title + " - " + artist)
.setAutoCancel(!playing)
.setOngoing(playing)
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setDeleteIntent(piStop);
builder.setContentIntent(getSessionPendingIntent());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment