Fixed clicking timecodes

This commit is contained in:
ByteHamster 2020-07-12 18:37:21 +02:00
parent 8d1cc82258
commit 83d48773de
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class ShownotesWebView extends WebView implements View.OnLongClickListene
@Override @Override
public boolean shouldOverrideUrlLoading(WebView view, String url) { public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (Timeline.isTimecodeLink(url) && timecodeSelectedListener != null) { if (Timeline.isTimecodeLink(url) && timecodeSelectedListener != null) {
timecodeSelectedListener.accept(Timeline.getTimecodeLinkTime(selectedUrl)); timecodeSelectedListener.accept(Timeline.getTimecodeLinkTime(url));
} else { } else {
IntentUtils.openInBrowser(getContext(), url); IntentUtils.openInBrowser(getContext(), url);
} }