From 8518b8060a0515bec219471b1b010f99de6cc696 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 7 Feb 2021 14:39:59 +0100 Subject: [PATCH] feat: Mark live videos in video lists --- .../net/schueller/peertube/adapter/VideoAdapter.java | 10 ++++++++-- .../main/java/net/schueller/peertube/model/State.java | 6 ++++++ .../main/java/net/schueller/peertube/model/Video.java | 9 +++++++++ app/src/main/res/layout/row_account_about.xml | 3 ++- app/src/main/res/layout/row_account_channels.xml | 3 ++- app/src/main/res/layout/row_account_video.xml | 3 ++- app/src/main/res/layout/row_video_list.xml | 4 ++-- app/src/main/res/values/colors.xml | 4 +++- app/src/main/res/values/strings.xml | 1 + 9 files changed, 35 insertions(+), 8 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 36b5c81..b3983f0 100644 --- a/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java +++ b/app/src/main/java/net/schueller/peertube/adapter/VideoAdapter.java @@ -88,8 +88,14 @@ public class VideoAdapter extends RecyclerView.Adapter + android:textColor="@color/durationTextColor" + android:background="@color/durationBackgroundColor"/> + android:textColor="@color/durationTextColor" + android:background="@color/durationBackgroundColor"/> + android:textColor="@color/durationTextColor" + android:background="@color/durationBackgroundColor"/> + android:textColor="@color/durationTextColor" + android:background="@color/durationBackgroundColor"/> #e300aaff #7ca6a6a6 #000000 - + #232323 + #ff0000 + #ffffff #F44336 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d4a765e..12b07d2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -361,4 +361,5 @@ No Yes You are about the disable all SSL Certification validation in Thorium. Disabling this can be very dangerous if the peertube server is not under your control, because a man-in-the-middle attack could direct traffic to another server without your knowledge. An attacker could record passwords and other personal data. + LIVE \ No newline at end of file