Trying to implement a custom notification, but I am getting this awful expansion to the notification when i try to forcefully expand it (In my case was not expecting it). This only happens when i switch off screen and then try to interact with the notification other times it acts normal and does not expand when i forcefully try too.
Also tried to cover up the white expansion by setting notification color like below :
.setColor(ContextCompat.getColor(context, R.color.notification_background_light))
did not make much difference.
Testing environment
Device : LG H815
OS : Android 6.0
SNAPHOT : here
CODE :
builder = new NotificationCompat.Builder(context);
builder.setSmallIcon(R.mipmap.ic_launcher)
.setContent(remoteViews)
.setContentIntent(pendingIntent)
.setColor(ContextCompat.getColor(context, R.color.notification_background_light))
.setOngoing(true);
notificationManager.notify(notification_id,builder.build());
i don't know if its an error from my side.
Thanks in advance