do not persist when expanded notifications are unsupported
check to see if expanded notifications are supported by android version, if not then do not persist notification even when option is enabled related to #480
This commit is contained in:
parent
1945941a9f
commit
bcd2013e04
|
@ -417,8 +417,8 @@ public class PlaybackService extends Service {
|
|||
taskManager.cancelPositionSaver();
|
||||
saveCurrentPosition(false, 0);
|
||||
taskManager.cancelWidgetUpdater();
|
||||
if (UserPreferences.isPersistNotify()) {
|
||||
// do not remove notification on pause
|
||||
if (UserPreferences.isPersistNotify() && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
|
||||
// do not remove notification on pause based on user pref and whether android version supports expanded notifications
|
||||
}
|
||||
else {
|
||||
// remove notifcation on pause
|
||||
|
|
Loading…
Reference in New Issue