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:
Mike Chelen 2014-09-30 16:36:36 -04:00
parent 1945941a9f
commit bcd2013e04
1 changed files with 2 additions and 2 deletions

View File

@ -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