diff options
3 files changed, 3 insertions, 3 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; } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java index 1f96c12f2..b90da7447 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java @@ -323,7 +323,7 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem activity.loadChildFragment(ItemPagerFragment.newInstance(ids, position)); } - @Subscribe + @Subscribe(threadMode = ThreadMode.MAIN) public void onEvent(FeedEvent event) { Log.d(TAG, "onEvent() called with: " + "event = [" + event + "]"); if (event.feedId == feedID) { diff --git a/app/src/main/res/layout/feeditemlist_header.xml b/app/src/main/res/layout/feeditemlist_header.xml index e7421e758..e74aeac0a 100644 --- a/app/src/main/res/layout/feeditemlist_header.xml +++ b/app/src/main/res/layout/feeditemlist_header.xml @@ -97,7 +97,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="2dp" - android:background="?attr/colorPrimary" + android:background="?android:attr/windowBackground" android:visibility="gone" android:gravity="center" tools:visibility="visible" |