feat: Added video thumb placehoder for loading and errors
This commit is contained in:
parent
06ace0d021
commit
830b19765e
@ -19,6 +19,7 @@ package net.schueller.peertube.adapter;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.widget.PopupMenu;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
@ -74,9 +75,10 @@ public class VideoAdapter extends RecyclerView.Adapter<VideoAdapter.VideoViewHol
|
||||
|
||||
Picasso.get()
|
||||
.load(baseUrl + videoList.get(position).getPreviewPath())
|
||||
.placeholder(R.drawable.test_image)
|
||||
.error(R.drawable.test_image)
|
||||
.into(holder.thumb);
|
||||
|
||||
|
||||
Avatar avatar = videoList.get(position).getAccount().getAvatar();
|
||||
if (avatar != null) {
|
||||
String avatarPath = avatar.getPath();
|
||||
|
BIN
app/src/main/res/drawable/test_image.gif
Normal file
BIN
app/src/main/res/drawable/test_image.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
Loading…
Reference in New Issue
Block a user