summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-05-14 16:02:09 +0200
committerGitHub <noreply@github.com>2020-05-14 16:02:09 +0200
commit571ac6f1d115a7ae36516f06c16d6524e761241b (patch)
treebf265ed9525b0982d58981735d1f6e1723a7601e
parentf29c8102848e27309273f5047c18bf8997db5c19 (diff)
parent458a7f7d72ffc020c8c4d3b377db7cb97ac18336 (diff)
downloadAntennaPod-571ac6f1d115a7ae36516f06c16d6524e761241b.zip
Merge pull request #4147 from jmdouglas/develop
Fix http search
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java
index 046a39355..546684f14 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java
@@ -98,7 +98,7 @@ public class AddFeedFragment extends Fragment {
private void performSearch() {
String query = combinedFeedSearchBox.getText().toString();
- if (query.startsWith("http")) {
+ if (query.matches("http[s]?://.*")) {
addUrl(query);
return;
}