From a0ff454dd9a8af25220e861564cde1d36693e44c Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 13 Oct 2020 18:11:53 +0200 Subject: [PATCH] Some improvements --- app/src/fdroid_full/play/release-notes/en-US/default.txt | 1 + .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 5 +++++ app/src/main/res/layout/activity_peertube.xml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/app/src/fdroid_full/play/release-notes/en-US/default.txt b/app/src/fdroid_full/play/release-notes/en-US/default.txt index e2a6ea8..5100bd0 100644 --- a/app/src/fdroid_full/play/release-notes/en-US/default.txt +++ b/app/src/fdroid_full/play/release-notes/en-US/default.txt @@ -2,5 +2,6 @@ - Remove all comments of an account on your videos - Sepia search: Allow interactions when the video is federated - Mute accounts from comments +- Links clickable in video descriptions - Fix all comments not displayed - Fix some minor other bugs \ No newline at end of file diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index 2096c3f..22e146c 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -15,6 +15,7 @@ package app.fedilab.fedilabtube; * see . */ import android.Manifest; +import android.annotation.SuppressLint; import android.app.Activity; import android.app.Dialog; import android.content.Intent; @@ -486,6 +487,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd } + @SuppressLint("ClickableViewAccessibility") public void manageVIewVideo(APIResponse apiResponse) { if (apiResponse == null || (apiResponse.getError() != null) || apiResponse.getPeertubes() == null || apiResponse.getPeertubes().size() == 0) { @@ -568,7 +570,10 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd } SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE); setTitle(peertube.getName()); + peertube_description.setText(peertube.getDescription()); + + peertube_title.setText(peertube.getName()); peertube_dislike_count.setText(String.valueOf(peertube.getDislikes())); peertube_like_count.setText(String.valueOf(peertube.getLikes())); diff --git a/app/src/main/res/layout/activity_peertube.xml b/app/src/main/res/layout/activity_peertube.xml index cf4c87b..f7a41a1 100644 --- a/app/src/main/res/layout/activity_peertube.xml +++ b/app/src/main/res/layout/activity_peertube.xml @@ -204,6 +204,8 @@