diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/feed_refresh_dialog.xml | 40 | ||||
-rw-r--r-- | app/src/main/res/layout/scrollable_dialog.xml | 37 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences_network.xml | 7 |
3 files changed, 5 insertions, 79 deletions
diff --git a/app/src/main/res/layout/feed_refresh_dialog.xml b/app/src/main/res/layout/feed_refresh_dialog.xml deleted file mode 100644 index 5a6770a80..000000000 --- a/app/src/main/res/layout/feed_refresh_dialog.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<RadioGroup - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/radioGroup" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="16dp"> - - <RadioButton - android:id="@+id/intervalRadioButton" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/feed_refresh_interval" /> - - <Spinner - android:id="@+id/spinner" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="gone" /> - - <RadioButton - android:id="@+id/timeRadioButton" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/feed_refresh_time" /> - - <de.danoeh.antennapod.view.TimePicker - android:id="@+id/timePicker" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:timePickerMode="spinner" - android:visibility="gone" /> - - <RadioButton - android:id="@+id/disableRadioButton" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/feed_refresh_never" /> - -</RadioGroup> diff --git a/app/src/main/res/layout/scrollable_dialog.xml b/app/src/main/res/layout/scrollable_dialog.xml deleted file mode 100644 index 29b84ee4b..000000000 --- a/app/src/main/res/layout/scrollable_dialog.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> - - <ScrollView - android:id="@+id/content" - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1" /> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="end" - android:orientation="horizontal" - android:paddingHorizontal="32dp" - android:paddingVertical="16dp" - style="?android:attr/buttonBarStyle"> - - <Button - android:id="@+id/negativeButton" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - style="?android:attr/buttonBarButtonStyle" /> - - <Button - android:id="@+id/positiveButton" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - style="?android:attr/buttonBarButtonStyle" /> - - </LinearLayout> - -</LinearLayout> diff --git a/app/src/main/res/xml/preferences_network.xml b/app/src/main/res/xml/preferences_network.xml index 83929bb70..f9cd15e68 100644 --- a/app/src/main/res/xml/preferences_network.xml +++ b/app/src/main/res/xml/preferences_network.xml @@ -4,10 +4,13 @@ xmlns:numberpicker="http://schemas.android.com/apk/de.danoeh.antennapod" xmlns:search="http://schemas.android.com/apk/com.bytehamster.lib.preferencesearch"> <PreferenceCategory android:title="@string/automation"> - <Preference + <de.danoeh.antennapod.preferences.MaterialListPreference + android:entryValues="@array/feed_refresh_interval_values" + android:entries="@array/feed_refresh_interval_entries" android:key="prefAutoUpdateIntervall" + android:title="@string/feed_refresh_title" android:summary="@string/feed_refresh_sum" - android:title="@string/feed_refresh_title"/> + android:defaultValue="12"/> <Preference android:summary="@string/pref_automatic_download_sum" android:key="prefAutoDownloadSettings" |