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

Make MediaParsingService foreground

parent a002b8f1
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
synchronized (MediaParsingService.this) {
if (mLastNotificationTime != -1L) {
try {
NotificationManagerCompat.from(MediaParsingService.this).notify(43, notification);
startForeground(43, notification);
} catch (IllegalArgumentException ignored) {}
}
}
......
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