Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tap on cover now opens feed without hindering scrolling #6826

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,6 @@
package de.danoeh.antennapod.view.viewholder;

import android.content.Intent;
import android.os.Build;
import android.text.Layout;
import android.text.format.Formatter;
Expand Down Expand Up @@ -136,6 +137,9 @@ public void bind(FeedItem item) {
.withCoverView(cover)
.load();
}

Intent openFeed = MainActivity.getIntentToOpenFeed(activity, item.getFeedId());
cover.setOnClickListener(view -> activity.startActivity(openFeed));
ueen marked this conversation as resolved.
Show resolved Hide resolved
}

private void bind(FeedMedia media) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/feeditemlist_item.xml
Expand Up @@ -80,6 +80,7 @@
android:layout_height="@dimen/thumbnail_length_queue_item"
android:layout_centerVertical="true"
android:importantForAccessibility="no"
android:foreground="?android:attr/selectableItemBackground"
tools:src="@tools:sample/avatars" />

</RelativeLayout>
Expand Down