mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
fix after rebase
This commit is contained in:
parent
37b3f6f04c
commit
cbb8431cfc
1 changed files with 4 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue