OSDN Git Service

Improve notification UX.
authorDanny Baumann <dannybaumann@web.de>
Fri, 12 Dec 2014 14:57:58 +0000 (15:57 +0100)
committerDanny Baumann <dannybaumann@web.de>
Fri, 19 Dec 2014 08:13:22 +0000 (09:13 +0100)
commit5223eb743062abf1a735bbb59bd37d0d486e500f
treea4af30e0185975feaff8d10d8324f16f4ea5a97a
parent62225e873bf4495bec1c81aa68b75d499bf7ad3e
Improve notification UX.

- Add a proper notification icon (courtesy of Joey Rizzoli)
- Use separate notification modes to allow the user to dismiss the
  notification when music isn't playing.
- Always show notification regardless whether an activity is in
  foreground to ensure the notification doesn't pop up out of the blue
  when ending playback inside the app and leaving it afterwards.
- Keep notification timestamp constant when updating it

Change-Id: I2fa9a56ff31ab2874d6d96786e6b80695397702b
AndroidManifest.xml
res/drawable-hdpi/ic_notification.png [new file with mode: 0644]
res/drawable-mdpi/ic_notification.png [new file with mode: 0644]
res/drawable-xhdpi/ic_notification.png [new file with mode: 0644]
res/drawable-xxhdpi/ic_notification.png [new file with mode: 0644]
src/com/cyanogenmod/eleven/MusicPlaybackService.java
src/com/cyanogenmod/eleven/appwidgets/AppWidgetBase.java
src/com/cyanogenmod/eleven/ui/activities/BaseActivity.java
src/com/cyanogenmod/eleven/ui/activities/SearchActivity.java
src/com/cyanogenmod/eleven/ui/activities/SettingsActivity.java
src/com/cyanogenmod/eleven/utils/MusicUtils.java