summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorTony Tam <engineer.tonytam@pm.me>2020-04-21 14:20:22 -0700
committerGitHub <noreply@github.com>2020-04-21 23:20:22 +0200
commit92eb1d669ba14318b90ad4da4cd925279007fa3a (patch)
tree07924bd7b28104f581e8b715749587dd3cab94a9 /app/src/main/res
parent3a86745e8144baa6d0a2cdc88aa0e29d1fd6e66c (diff)
downloadAntennaPod-92eb1d669ba14318b90ad4da4cd925279007fa3a.zip
Skip intro and ending per feed (#3975)
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/feed_pref_skip_dialog.xml78
-rw-r--r--app/src/main/res/xml/feed_settings.xml9
2 files changed, 85 insertions, 2 deletions
diff --git a/app/src/main/res/layout/feed_pref_skip_dialog.xml b/app/src/main/res/layout/feed_pref_skip_dialog.xml
new file mode 100644
index 000000000..db76a3426
--- /dev/null
+++ b/app/src/main/res/layout/feed_pref_skip_dialog.xml
@@ -0,0 +1,78 @@
+<?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" >
+
+ <TextView
+ android:id="@+id/labelSkipIntro"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"
+ android:text="@string/pref_feed_skip_intro" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+
+ <EditText
+ android:id="@+id/etxtSkipIntro"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="24dp"
+ android:autofillHints="@string/pref_feed_skip_intro"
+ android:cursorVisible="true"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:inputType="number"
+ android:maxLength="5"
+ android:minWidth="150dp"
+ android:text="30" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="24dp"
+ android:text="@string/time_seconds" />
+
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/labelSkipEnd"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"
+ android:text="@string/pref_feed_skip_ending" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+
+ <EditText
+ android:id="@+id/etxtSkipEnd"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="24dp"
+ android:cursorVisible="true"
+ android:focusable="true"
+ android:autofillHints="@string/pref_feed_skip_ending"
+ android:focusableInTouchMode="true"
+ android:inputType="number"
+ android:maxLength="5"
+ android:minWidth="150dp"
+ android:text="30" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="24dp"
+ android:text="@string/time_seconds" />
+ </LinearLayout>
+
+</LinearLayout>
diff --git a/app/src/main/res/xml/feed_settings.xml b/app/src/main/res/xml/feed_settings.xml
index a9effdeeb..9a3a4f438 100644
--- a/app/src/main/res/xml/feed_settings.xml
+++ b/app/src/main/res/xml/feed_settings.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:key="feedSettingsScreen">
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:key="feedSettingsScreen">
<SwitchPreference
android:key="keepUpdated"
@@ -21,6 +21,11 @@
android:title="@string/playback_speed"
android:summary="@string/pref_feed_playback_speed_sum"/>
+ <Preference
+ android:key="skipping"
+ android:summary="@string/pref_feed_skip_sum"
+ android:title="@string/pref_feed_skip" />
+
<ListPreference
android:entries="@array/spnAutoDeleteItems"
android:entryValues="@array/spnAutoDeleteValues"