Skip to content

Conversation

@glennguy
Copy link
Contributor

I've used Google Play Music's Oreo notifications as a sort of template, at least in O+. Here's what I've done:

  • Prev, pause/play, next icons in compact mode, rate good/bad in expanded. Prev/next change to rw/ff as inside the app.
  • Persistent notification setting now keeps the notification persistent (Nougat+). It will stay indefinitely, rather than being cancelled when the service gets killed.
  • Only prev, play/pause, next buttons in expanded view for < N. You get a much larger album icon this way.
  • New notification icon based on the launcher icon.
  • Further refined the dealing with startForeground related crashes.

Tested on APIs 19, 23, 24, 26 in emulator and on my pixel (28). Been running for a week without issue on pixel.

Some of the choices (such as which buttons to display < 24) are subjective, please let me know if you have different ideas!

screenshot_1542865598

I've used Google Play Music's Oreo notifications as a sort of template, at least in O+. Here's what I've done:
* Prev, pause/play, next icons in compact mode, rate good/bad in expanded. Prev/next change to rw/ff as inside the app.
* Persistent notification setting now keeps the notification persistent (Nougat+). It will stay indefinitely, rather than being cancelled when the service gets killed.
* Only prev, play/pause, next buttons in expanded view for < N. You get a much larger album icon this way.
* New notification icon based on the launcher icon.
* Further refined the dealing with startForeground related crashes.

Tested on APIs 19, 23, 24, 26 in emulator and on my pixel (28). Been running for a week without issue on pixel.
@vrih
Copy link
Contributor

vrih commented Nov 22, 2018

That looks great. The only thing that feels weird to me is the order of thumbs up/thumbs down. I don't think I've got any other apps that implement that right now though so nothing to compare it to.

@glennguy
Copy link
Contributor Author

GPM does, they're in the same order. It also looks like there's a tiny bit more padding around play/pause.

@vrih
Copy link
Contributor

vrih commented Nov 22, 2018

This also possibly resolves #893 + #846

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants