Skip to content

Problem with NotificationCompat.MediaStyle() for API Level 26 (Oreo) and beyond #19

@ambageo

Description

@ambageo

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions