I have this code to style my notification:
remoteViews = new RemoteViews(context.getPackageName(), R.layout.notification);
mBuilder = new NotificationCompat.Builder(context);
mBuilder.setSmallIcon(R.drawable.ic_stat_notification);
mBuilder.setCustomContentView(remoteViews);
mBuilder.setOngoing(true);
mBuilder.setCategory(NotificationCompat.CATEGORY_PROGRESS);
mBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);
mBuilder.setShowWhen(false);
mBuilder.setStyle(new NotificationCompat.DecoratedCustomViewStyle());
mBuilder.setAutoCancel(true);
As you can see I haven't defined an expanded view for the notification by calling mBuilder.setCustomBigContentView()
. Nevertheless the notification is showing with a arrow pointing up as if my notification was expanded. How can I prevent that arrow from showing?