Some improvements

This commit is contained in:
Thomas 2020-10-13 18:11:53 +02:00
parent fa6b1560f8
commit a0ff454dd9
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -15,6 +15,7 @@ package app.fedilab.fedilabtube;
* see <http://www.gnu.org/licenses>. */
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()));

View File

@ -204,6 +204,8 @@
<TextView
android:id="@+id/peertube_description"
android:textIsSelectable="true"
android:autoLink="web"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" />