You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the MediaStyle notification isn't working when selecting the compileSdkVersion to 27. As I found in the following link, we must add the following import:
import android.support.v4.media.app.NotificationCompat.MediaStyle;
Additionally, in the showNotification() method, were we set the Style of the builder, we must do it in the following way:
setStyle(new android.support.v4.media.app.NotificationCompat.MediaStyle()
The text was updated successfully, but these errors were encountered:
#Edit: it seems that importing the android.support.v4.media.app.NotificationCompat.MediaStyle isn't necessary, so we only have to change the setStyle part.
However, although the notification is shown, the notifications actions are not working.
I noticed that the MediaStyle notification isn't working when selecting the compileSdkVersion to 27. As I found in the following link, we must add the following import:
import android.support.v4.media.app.NotificationCompat.MediaStyle;
Additionally, in the showNotification() method, were we set the Style of the builder, we must do it in the following way:
setStyle(new android.support.v4.media.app.NotificationCompat.MediaStyle()
The text was updated successfully, but these errors were encountered: