default to Notification.PRIORITY_HIGH

This commit is contained in:
Adrian Ulrich 2017-06-24 13:05:02 +02:00
parent 94142cad6a
commit f88f96d615

View File

@ -2101,6 +2101,9 @@ public final class PlaybackService extends Service
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
// expanded view is available since 4.1
notification.bigContentView = expanded;
// 4.1 also knows about notification priorities
// HIGH is one higher than the default.
notification.priority = Notification.PRIORITY_HIGH;
}
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
notification.visibility = Notification.VISIBILITY_PUBLIC;