Notification keeps expanding state by default

Viewed 1504

Is it possible to keep expand state by default for setCustomBigContentView? It gets collapsed by default when I use setCustomBigContentView method even the size lower than default notification height.

RemoteViews contentView = new RemoteViews(context.getPackageName(), 
                          R.layout.notification_layout);

NotificationCompat.Builder builder = builder
                .setSmallIcon(R.mipmap.ic_launcher_round)
                .setCustomBigContentView(contentView)
                .setOngoing(true);

Note: Some users blindly search for similar headline instead of understanding the code and situation. I feel sorry for them.

0 Answers
Related