summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-03-25 17:01:47 +0100
committerGitHub <noreply@github.com>2020-03-25 17:01:47 +0100
commit93595c7bc27235cfd045088cb780de14a6f2c3de (patch)
tree1df89bafa9d24f7c238ecf4bc196b259c0c826a4
parent3bb222089e75accfdc311e4b30f09fd68df08a02 (diff)
parent75e34da30fa4513dd8182f8e0eb36ca38cc655ea (diff)
downloadAntennaPod-93595c7bc27235cfd045088cb780de14a6f2c3de.zip
Merge pull request #3959 from ByteHamster/online-feed-view-close
Close OnlineFeedViewActivity when clicking border
-rw-r--r--app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java3
-rw-r--r--app/src/main/res/layout/onlinefeedview_activity.xml13
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 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools">
+ android:layout_height="match_parent"
+ android:id="@+id/transparentBackground">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="4dp"
android:layout_margin="32dp"
- android:elevation="16dp">
+ android:elevation="16dp"
+ android:id="@+id/card">
<FrameLayout
android:orientation="vertical"
@@ -27,7 +30,7 @@
<LinearLayout
android:id="@+id/feedDisplay"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
@@ -39,7 +42,7 @@
android:id="@+id/imgvBackground"
style="@style/BigBlurryBackground"
android:layout_width="match_parent"
- android:layout_height="@dimen/feeditemlist_header_height" />
+ android:layout_height="@dimen/feeditemlist_header_height"/>
<ImageView
android:id="@+id/imgvCover"
@@ -77,7 +80,7 @@
android:shadowColor="@color/black"
android:shadowRadius="3"
android:textColor="@color/white"
- tools:text="Podcast title" />
+ tools:text="Podcast title"/>
<TextView
android:id="@+id/txtvAuthor"