mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-23 07:25:25 +01:00
Fix default per-feed skip silence setting (#7101)
This commit is contained in:
parent
25e4703da4
commit
8037bd2239
@ -249,6 +249,9 @@ public class FeedPreferences implements Serializable {
|
||||
}
|
||||
|
||||
public SkipSilence getFeedSkipSilence() {
|
||||
if (feedPlaybackSpeed == SPEED_USE_GLOBAL) {
|
||||
return SkipSilence.GLOBAL;
|
||||
}
|
||||
return feedSkipSilence;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@ import android.media.MediaMetadataRetriever;
|
||||
import android.util.Log;
|
||||
|
||||
import de.danoeh.antennapod.model.feed.FeedItem;
|
||||
import de.danoeh.antennapod.model.feed.FeedPreferences;
|
||||
|
||||
import static de.danoeh.antennapod.model.feed.FeedPreferences.SPEED_USE_GLOBAL;
|
||||
|
||||
@ -336,7 +337,8 @@ class DBUpgrader {
|
||||
}
|
||||
if (oldVersion < 3040000) {
|
||||
db.execSQL("ALTER TABLE " + PodDBAdapter.TABLE_NAME_FEEDS
|
||||
+ " ADD COLUMN " + PodDBAdapter.KEY_FEED_SKIP_SILENCE + " INTEGER");
|
||||
+ " ADD COLUMN " + PodDBAdapter.KEY_FEED_SKIP_SILENCE
|
||||
+ " INTEGER DEFAULT " + FeedPreferences.SkipSilence.GLOBAL.code);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user