Cleanup
This commit is contained in:
parent
5a7cbdfaca
commit
f3cd43b972
|
@ -5,7 +5,6 @@ import android.content.DialogInterface;
|
|||
import android.os.Bundle;
|
||||
import android.support.v14.preference.SwitchPreference;
|
||||
import android.support.v7.preference.ListPreference;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.support.v7.preference.PreferenceFragmentCompat;
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.activity.FeedSettingsActivity;
|
||||
|
@ -125,7 +124,13 @@ public class FeedSettingsFragment extends PreferenceFragmentCompat {
|
|||
SwitchPreference pref = (SwitchPreference) findPreference("autoDownload");
|
||||
|
||||
pref.setEnabled(UserPreferences.isEnableAutodownload());
|
||||
pref.setChecked(feedPreferences.getAutoDownload());
|
||||
if (UserPreferences.isEnableAutodownload()) {
|
||||
pref.setChecked(feedPreferences.getAutoDownload());
|
||||
} else {
|
||||
pref.setChecked(false);
|
||||
pref.setSummary(R.string.auto_download_disabled_globally);
|
||||
}
|
||||
|
||||
pref.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
boolean checked = newValue == Boolean.TRUE;
|
||||
|
||||
|
|
|
@ -7,15 +7,14 @@
|
|||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/radio_filter_group"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="vertical">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radio_filter_include"
|
||||
|
|
|
@ -694,6 +694,7 @@
|
|||
<string name="episode_filters_hint">Single words \n\"Multiple Words\"</string>
|
||||
<string name="keep_updated">Keep Updated</string>
|
||||
<string name="keep_updated_summary">Include this feed when (auto-)refreshing all feeds</string>
|
||||
<string name="auto_download_disabled_globally">Auto download is disabled in the main AntennaPod settings</string>
|
||||
|
||||
<!-- Progress information -->
|
||||
<string name="progress_upgrading_database">Upgrading the database</string>
|
||||
|
|
Loading…
Reference in New Issue