Notification icon in Android 7 -


i'm having problem app's notification icon (in android 7). instead of showing full icon image, system displays background of icon (see attached image). guess it's icon, idea should fix? thanks!

enter image description here

edit: code example

notificationcompat.builder builder = new notificationcompat.builder(this);     builder.setcontenttitle(title)             .setcontenttext(message)             .setsmallicon(r.mipmap.ic_launcher)             .setautocancel(true)             .setongoing(false)             .setticker(message)             .setcontentintent(pendingintent);     android.app.notification notification = new notificationcompat.bigtextstyle(builder)             .bigtext(message).build(); 

you need use smallicon 1 , largeicon full one.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -