summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-02-01 18:18:38 +0100
committerGitHub <noreply@github.com>2020-02-01 18:18:38 +0100
commit63290ae762518c94563b8c128aef3eccc35d6fd9 (patch)
tree967682fa446e5b9307d3df5e7e9cf1cffa16c710 /core
parentf5a30f6eed0fd2f8f85ed7ee697c8c96d5d669e5 (diff)
parent8356226e975f9be5dc0b082ebe5ece9585cc95ea (diff)
downloadAntennaPod-63290ae762518c94563b8c128aef3eccc35d6fd9.zip
Merge pull request #3813 from ByteHamster/shownotes-webview
ShownotesWebView improvements
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java13
-rw-r--r--core/src/main/res/values/strings.xml1
2 files changed, 3 insertions, 11 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java
index 5b9452d6f..8624ec7e5 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java
@@ -106,11 +106,10 @@ public class Timeline {
* This method does NOT change the original shownotes string of the shownotesProvider object and it should
* also not be changed by the caller.
*
- * @param addTimecodes True if this method should add timecode links
* @return The processed HTML string.
*/
@NonNull
- public String processShownotes(final boolean addTimecodes) {
+ public String processShownotes() {
final Playable playable = (shownotesProvider instanceof Playable) ? (Playable) shownotesProvider : null;
// load shownotes
@@ -155,10 +154,7 @@ public class Timeline {
document.head().appendElement("style").attr("type", "text/css").text(styleStr);
// apply timecode links
- if (addTimecodes) {
- addTimecodes(document, playable);
- }
-
+ addTimecodes(document, playable);
return document.toString();
}
@@ -188,11 +184,6 @@ public class Timeline {
return -1;
}
-
- public void setShownotesProvider(@NonNull ShownotesProvider shownotesProvider) {
- this.shownotesProvider = shownotesProvider;
- }
-
private void addTimecodes(Document document, final Playable playable) {
Elements elementsWithTimeCodes = document.body().getElementsMatchingOwnText(TIMECODE_REGEX);
Log.d(TAG, "Recognized " + elementsWithTimeCodes.size() + " timecodes");
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
index 8c6697c4c..d87afcd09 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -192,6 +192,7 @@
<string name="marked_as_read_label">Marked as played</string>
<string name="mark_read_no_media_label">Mark as read</string>
<string name="marked_as_read_no_media_label">Marked as read</string>
+ <string name="play_this_to_seek_position">To jump to positions, you need to play the episode</string>
<plurals name="marked_read_batch_label">
<item quantity="one">%d episode marked as played.</item>
<item quantity="other">%d episodes marked as played.</item>