From 75e34da30fa4513dd8182f8e0eb36ca38cc655ea Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 25 Mar 2020 15:41:42 +0100 Subject: [PATCH] Close OnlineFeedViewActivity when clicking border --- .../antennapod/activity/OnlineFeedViewActivity.java | 3 +++ app/src/main/res/layout/onlinefeedview_activity.xml | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java index 7257537b1..5b5cd3058 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java @@ -113,6 +113,9 @@ public class OnlineFeedViewActivity extends AppCompatActivity { listView = findViewById(R.id.listview); progressBar = findViewById(R.id.progressBar); + findViewById(R.id.transparentBackground).setOnClickListener(v -> finish()); + findViewById(R.id.card).setOnClickListener(null); + String feedUrl = null; if (getIntent().hasExtra(ARG_FEEDURL)) { feedUrl = getIntent().getStringExtra(ARG_FEEDURL); diff --git a/app/src/main/res/layout/onlinefeedview_activity.xml b/app/src/main/res/layout/onlinefeedview_activity.xml index 6b52ccf44..34dbeb6d9 100644 --- a/app/src/main/res/layout/onlinefeedview_activity.xml +++ b/app/src/main/res/layout/onlinefeedview_activity.xml @@ -2,15 +2,18 @@ + android:layout_height="match_parent" + android:id="@+id/transparentBackground"> + android:elevation="16dp" + android:id="@+id/card"> + android:layout_height="@dimen/feeditemlist_header_height"/> + tools:text="Podcast title"/>