Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed Jan 2, 2021
1 parent f4bbc55 commit 5a8bfc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.danoeh.antennapod.adapter;

import android.content.ContentResolver;
import android.content.Context;

import androidx.core.text.TextUtilsCompat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public enum AutoDeleteAction {
YES,
NO
}
private AutoDeleteAction auto_delete_action;
private AutoDeleteAction autoDeleteAction;

private VolumeAdaptionSetting volumeAdaptionSetting;

Expand All @@ -44,19 +44,19 @@ public enum AutoDeleteAction {
private int feedSkipEnding;
private final Set<String> tags = new HashSet<>();

public FeedPreferences(long feedID, boolean autoDownload, AutoDeleteAction auto_delete_action, VolumeAdaptionSetting volumeAdaptionSetting, String username, String password) {
this(feedID, autoDownload, true, auto_delete_action, volumeAdaptionSetting,
public FeedPreferences(long feedID, boolean autoDownload, AutoDeleteAction autoDeleteAction, VolumeAdaptionSetting volumeAdaptionSetting, String username, String password) {
this(feedID, autoDownload, true, autoDeleteAction, volumeAdaptionSetting,
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,
@NonNull FeedFilter filter, float feedPlaybackSpeed, int feedSkipIntro, int feedSkipEnding,
Set<String> tags) {
this.feedID = feedID;
this.autoDownload = autoDownload;
this.keepUpdated = keepUpdated;
this.auto_delete_action = auto_delete_action;
this.autoDeleteAction = autoDeleteAction;
this.volumeAdaptionSetting = volumeAdaptionSetting;
this.username = username;
this.password = password;
Expand Down Expand Up @@ -185,23 +185,23 @@ public void setAutoDownload(boolean autoDownload) {
}

public AutoDeleteAction getAutoDeleteAction() {
return auto_delete_action;
return autoDeleteAction;
}

public VolumeAdaptionSetting getVolumeAdaptionSetting() {
return volumeAdaptionSetting;
}

public void setAutoDeleteAction(AutoDeleteAction auto_delete_action) {
this.auto_delete_action = auto_delete_action;
this.autoDeleteAction = auto_delete_action;
}

public void setVolumeAdaptionSetting(VolumeAdaptionSetting volumeAdaptionSetting) {
this.volumeAdaptionSetting = volumeAdaptionSetting;
}

public boolean getCurrentAutoDelete() {
switch (auto_delete_action) {
switch (autoDeleteAction) {
case GLOBAL:
return UserPreferences.isAutoDelete();

Expand Down

0 comments on commit 5a8bfc0

Please sign in to comment.