Remove bottom-sheet-thumbnail placeholder, clear the image instead

This commit is contained in:
Stypox 2022-07-14 10:55:26 +02:00
parent dff1adb1ad
commit 7b9b9218dc
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
3 changed files with 2 additions and 3 deletions

View File

@ -2361,7 +2361,7 @@ public final class VideoDetailFragment
@Nullable final String thumbnailUrl) {
binding.overlayTitleTextView.setText(isEmpty(overlayTitle) ? "" : overlayTitle);
binding.overlayChannelTextView.setText(isEmpty(uploader) ? "" : uploader);
binding.overlayThumbnail.setImageResource(R.drawable.dummy_thumbnail_dark);
binding.overlayThumbnail.setImageDrawable(null);
PicassoHelper.loadDetailsThumbnail(thumbnailUrl).tag(PICASSO_VIDEO_DETAILS_TAG)
.into(binding.overlayThumbnail);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 B

View File

@ -618,8 +618,7 @@
android:gravity="center_vertical"
android:paddingLeft="@dimen/video_item_search_padding"
android:paddingRight="@dimen/video_item_search_padding"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail" />
android:scaleType="fitCenter" />
<LinearLayout
android:id="@+id/overlay_metadata_layout"