I'm trying to use .setProgress()
on a NotificationBuilder but it seems the pogressBar won't appear if I use MediaStyle:
NotificationCompat.Builder builder = new NotificationCompat.Builder(this,CHANNEL);
builder
.setSmallIcon(R.drawable.logo)
// more configuration
.setStyle(new android.support.v4.media.app.NotificationCompat.MediaStyle()
.setShowActionsInCompactView(1)
// more config
.setMediaSession(mediaSession.getSessionToken()))
if(isBuffering){
builder.setProgres(0,0, true);
}
If I remove the .setStyle the progress bar appears as supposed but with MediaStyle it won't.
Does anyone know if there is a way to make both compatible?
Thanks
Same question, now I can set max duration in the seekbar
but It will appear after buffering is done, quite lame