Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions