fix after rebase

This commit is contained in:
AndyScherzinger 2018-04-24 14:01:43 +02:00
parent 37b3f6f04c
commit cbb8431cfc
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -152,7 +152,7 @@ public class MediaFoldersDetectionJob extends Job {
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.notification_icon)
.setLargeIcon(BitmapFactory.decodeResource(context.getResources(), R.drawable.notification_icon))
.setColor(ThemeUtils.primaryColor())
.setColor(ThemeUtils.primaryColor(getContext()))
.setSubText(account.name)
.setContentTitle(contentTitle)
.setContentText(subtitle)
@ -167,7 +167,8 @@ public class MediaFoldersDetectionJob extends Job {
NotificationManager notificationManager = (NotificationManager)
context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(0, notificationBuilder.build());
if (notificationManager != null) {
notificationManager.notify(0, notificationBuilder.build());
}
}
}