I'm presenting different notifications in different scenarios in my application. Those notifications are created using the following code:

```
    protected void updateNotificationProgress() {
    notification.setContentTitle(notificationConfig.getTitle())
            .setContentText(String.format(getString(R.string.in_progress_formatted_string), (Utils.getUploadedFilesCount(this) + 1), Utils.getTotalUploadCount(this)))
            .setContentIntent(notificationConfig.getPendingIntent(this))
            .setSmallIcon(notificationConfig.getIconResourceID())
            .setProgress(Utils.getTotalUploadCount(this), Utils.getUploadedFilesCount(this), false)
            .setOngoing(true);

    startForeground(UPLOAD_NOTIFICATION_ID, notification.build());
}

```

While on most devices (LG G3, Samsung Galaxy devices) this notification looks as follows:

[![enter image description here](https://i.stack.imgur.com/pUp2d.png)](https://i.stack.imgur.com/pUp2d.png)

[![enter image description here](https://i.stack.imgur.com/okK5V.png)](https://i.stack.imgur.com/okK5V.png)

On Nexus devices this icon looks like this:

[![enter image description here](https://i.stack.imgur.com/sM00d.png)](https://i.stack.imgur.com/sM00d.png)

[![enter image description here](https://i.stack.imgur.com/z967j.png)](https://i.stack.imgur.com/z967j.png)

Why does this happen, and what is the proper way to fix this?