Fix checkstyle

This commit is contained in:
ByteHamster 2021-01-02 21:20:49 +01:00
parent f4bbc5535c
commit 5a8bfc0ea4
2 changed files with 8 additions and 9 deletions

View File

@ -1,6 +1,5 @@
package de.danoeh.antennapod.adapter; package de.danoeh.antennapod.adapter;
import android.content.ContentResolver;
import android.content.Context; import android.content.Context;
import androidx.core.text.TextUtilsCompat; import androidx.core.text.TextUtilsCompat;

View File

@ -33,7 +33,7 @@ public class FeedPreferences {
YES, YES,
NO NO
} }
private AutoDeleteAction auto_delete_action; private AutoDeleteAction autoDeleteAction;
private VolumeAdaptionSetting volumeAdaptionSetting; private VolumeAdaptionSetting volumeAdaptionSetting;
@ -44,19 +44,19 @@ public class FeedPreferences {
private int feedSkipEnding; private int feedSkipEnding;
private final Set<String> tags = new HashSet<>(); private final Set<String> tags = new HashSet<>();
public FeedPreferences(long feedID, boolean autoDownload, AutoDeleteAction auto_delete_action, VolumeAdaptionSetting volumeAdaptionSetting, String username, String password) { public FeedPreferences(long feedID, boolean autoDownload, AutoDeleteAction autoDeleteAction, VolumeAdaptionSetting volumeAdaptionSetting, String username, String password) {
this(feedID, autoDownload, true, auto_delete_action, volumeAdaptionSetting, this(feedID, autoDownload, true, autoDeleteAction, volumeAdaptionSetting,
username, password, new FeedFilter(), SPEED_USE_GLOBAL, 0, 0, new HashSet<>()); username, password, new FeedFilter(), SPEED_USE_GLOBAL, 0, 0, new HashSet<>());
} }
private FeedPreferences(long feedID, boolean autoDownload, boolean keepUpdated, AutoDeleteAction auto_delete_action, private FeedPreferences(long feedID, boolean autoDownload, boolean keepUpdated, AutoDeleteAction autoDeleteAction,
VolumeAdaptionSetting volumeAdaptionSetting, String username, String password, VolumeAdaptionSetting volumeAdaptionSetting, String username, String password,
@NonNull FeedFilter filter, float feedPlaybackSpeed, int feedSkipIntro, int feedSkipEnding, @NonNull FeedFilter filter, float feedPlaybackSpeed, int feedSkipIntro, int feedSkipEnding,
Set<String> tags) { Set<String> tags) {
this.feedID = feedID; this.feedID = feedID;
this.autoDownload = autoDownload; this.autoDownload = autoDownload;
this.keepUpdated = keepUpdated; this.keepUpdated = keepUpdated;
this.auto_delete_action = auto_delete_action; this.autoDeleteAction = autoDeleteAction;
this.volumeAdaptionSetting = volumeAdaptionSetting; this.volumeAdaptionSetting = volumeAdaptionSetting;
this.username = username; this.username = username;
this.password = password; this.password = password;
@ -185,7 +185,7 @@ public class FeedPreferences {
} }
public AutoDeleteAction getAutoDeleteAction() { public AutoDeleteAction getAutoDeleteAction() {
return auto_delete_action; return autoDeleteAction;
} }
public VolumeAdaptionSetting getVolumeAdaptionSetting() { public VolumeAdaptionSetting getVolumeAdaptionSetting() {
@ -193,7 +193,7 @@ public class FeedPreferences {
} }
public void setAutoDeleteAction(AutoDeleteAction auto_delete_action) { public void setAutoDeleteAction(AutoDeleteAction auto_delete_action) {
this.auto_delete_action = auto_delete_action; this.autoDeleteAction = auto_delete_action;
} }
public void setVolumeAdaptionSetting(VolumeAdaptionSetting volumeAdaptionSetting) { public void setVolumeAdaptionSetting(VolumeAdaptionSetting volumeAdaptionSetting) {
@ -201,7 +201,7 @@ public class FeedPreferences {
} }
public boolean getCurrentAutoDelete() { public boolean getCurrentAutoDelete() {
switch (auto_delete_action) { switch (autoDeleteAction) {
case GLOBAL: case GLOBAL:
return UserPreferences.isAutoDelete(); return UserPreferences.isAutoDelete();