From 5464c51a18772f69110c9f074e3a988fffe562c8 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 27 Jan 2019 16:22:44 +0100 Subject: [PATCH] - Duration display adjustment - Avatar click to owner page --- .../net/schueller/peertube/adapter/VideoAdapter.java | 9 ++++++++- app/src/main/res/layout/row_video.xml | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java b/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java index cccdb33..e55e40b 100644 --- a/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java +++ b/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java @@ -107,13 +107,20 @@ public class VideoAdapter extends RecyclerView.Adapter { Intent intent = new Intent(context, AccountActivity.class); intent.putExtra(EXTRA_ACCOUNTDISPLAYNAME, displayNameAndHost); context.startActivity(intent); }); + // avatar click + holder.avatar.setOnClickListener(v -> { + Intent intent = new Intent(context, AccountActivity.class); + intent.putExtra(EXTRA_ACCOUNTDISPLAYNAME, displayNameAndHost); + context.startActivity(intent); + }); + holder.mView.setOnClickListener(v -> { // Log.v("VideoAdapter", "click: " + videoList.get(position).getName()); diff --git a/app/src/main/res/layout/row_video.xml b/app/src/main/res/layout/row_video.xml index 16e7546..afc2c1e 100644 --- a/app/src/main/res/layout/row_video.xml +++ b/app/src/main/res/layout/row_video.xml @@ -30,6 +30,7 @@ android:scaleType="fitXY" /> + android:background="#232323"/>