Android Lollipop notice white blank circle

I did it

Notification.Builder notificationBuilder = new Notification.Builder( getApplicationContext()); RemoteViews mContentView = new RemoteViews( getApplicationContext().getPackageName(), R.layout.custom_notification); Uri alertSound = RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); notificationBuilder.setSound(alertSound); mContentView.setTextViewText(R.id.text, getResources() .getString(R.string.activation_code) + ": " + mUUID); notificationBuilder.setContent(mContentView); notificationBuilder.setContentTitle(getResources() .getString(R.string.activation_code)); notificationBuilder .setSmallIcon(R.drawable.ic_launcher); notificationBuilder.setAutoCancel(true); NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); manager.notify(11151990, notificationBuilder.getNotification()); 

Very simple, it works great until today, when I received my lollipop os for nexus 7. The notification icon at the top shows a white circle. How can i fix this? When I drag from above, the notification looks fine inside.

+6
source share
1 answer

http://developer.android.com/design/patterns/notifications.html

On this page, you can see in the "Do Not" section, your notification icons should only be two colors: white on a transparent background. The icon in the drop-down notification differs from it in fewer restrictions.

0
source

Source: https://habr.com/ru/post/978313/


All Articles