diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
index 278d472d4..78f3772e9 100644
--- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
@@ -714,7 +714,7 @@ public final class VideoDetailFragment
}
private void initThumbnailViews(@NonNull final StreamInfo info) {
- PicassoHelper.loadThumbnail(info.getThumbnailUrl()).tag(PICASSO_VIDEO_DETAILS_TAG)
+ PicassoHelper.loadDetailsThumbnail(info.getThumbnailUrl()).tag(PICASSO_VIDEO_DETAILS_TAG)
.into(binding.detailThumbnailImageView, new Callback() {
@Override
public void onSuccess() {
@@ -2361,7 +2361,7 @@ public final class VideoDetailFragment
binding.overlayTitleTextView.setText(isEmpty(overlayTitle) ? "" : overlayTitle);
binding.overlayChannelTextView.setText(isEmpty(uploader) ? "" : uploader);
binding.overlayThumbnail.setImageResource(R.drawable.dummy_thumbnail_dark);
- PicassoHelper.loadThumbnail(thumbnailUrl).tag(PICASSO_VIDEO_DETAILS_TAG)
+ PicassoHelper.loadDetailsThumbnail(thumbnailUrl).tag(PICASSO_VIDEO_DETAILS_TAG)
.into(binding.overlayThumbnail);
}
diff --git a/app/src/main/java/org/schabi/newpipe/util/PicassoHelper.java b/app/src/main/java/org/schabi/newpipe/util/PicassoHelper.java
index aabc459d0..223e8ac9c 100644
--- a/app/src/main/java/org/schabi/newpipe/util/PicassoHelper.java
+++ b/app/src/main/java/org/schabi/newpipe/util/PicassoHelper.java
@@ -104,6 +104,10 @@ public final class PicassoHelper {
return loadImageDefault(url, R.drawable.dummy_thumbnail);
}
+ public static RequestCreator loadDetailsThumbnail(final String url) {
+ return loadImageDefault(url, R.drawable.dummy_thumbnail, false);
+ }
+
public static RequestCreator loadBanner(final String url) {
return loadImageDefault(url, R.drawable.channel_banner);
}
@@ -189,15 +193,24 @@ public final class PicassoHelper {
private static RequestCreator loadImageDefault(final String url, final int placeholderResId) {
+ return loadImageDefault(url, placeholderResId, true);
+ }
+
+ private static RequestCreator loadImageDefault(final String url, final int placeholderResId,
+ final boolean showPlaceholderWhileLoading) {
if (!shouldLoadImages || isBlank(url)) {
return picassoInstance
.load((String) null)
.placeholder(placeholderResId) // show placeholder when no image should load
.error(placeholderResId);
} else {
- return picassoInstance
+ final RequestCreator requestCreator = picassoInstance
.load(url)
- .error(placeholderResId); // don't show placeholder while loading, only on error
+ .error(placeholderResId);
+ if (showPlaceholderWhileLoading) {
+ requestCreator.placeholder(placeholderResId);
+ }
+ return requestCreator;
}
}
}
diff --git a/app/src/main/res/drawable-nodpi/buddy.png b/app/src/main/res/drawable-nodpi/buddy.png
deleted file mode 100644
index 8713ee02b..000000000
Binary files a/app/src/main/res/drawable-nodpi/buddy.png and /dev/null differ
diff --git a/app/src/main/res/drawable-nodpi/buddy_channel_item.png b/app/src/main/res/drawable-nodpi/buddy_channel_item.png
deleted file mode 100644
index 64d4cb1a0..000000000
Binary files a/app/src/main/res/drawable-nodpi/buddy_channel_item.png and /dev/null differ
diff --git a/app/src/main/res/drawable-nodpi/dummy_thumbnail.png b/app/src/main/res/drawable-nodpi/dummy_thumbnail.png
deleted file mode 100644
index 86f454186..000000000
Binary files a/app/src/main/res/drawable-nodpi/dummy_thumbnail.png and /dev/null differ
diff --git a/app/src/main/res/drawable-nodpi/dummy_thumbnail_dark.png b/app/src/main/res/drawable-nodpi/dummy_thumbnail_dark.png
index 02f698918..0e73416ed 100644
Binary files a/app/src/main/res/drawable-nodpi/dummy_thumbnail_dark.png and b/app/src/main/res/drawable-nodpi/dummy_thumbnail_dark.png differ
diff --git a/app/src/main/res/drawable-nodpi/dummy_thumbnail_playlist.png b/app/src/main/res/drawable-nodpi/dummy_thumbnail_playlist.png
deleted file mode 100644
index 9ba84fdb4..000000000
Binary files a/app/src/main/res/drawable-nodpi/dummy_thumbnail_playlist.png and /dev/null differ
diff --git a/app/src/main/res/drawable/buddy.xml b/app/src/main/res/drawable/buddy.xml
new file mode 100644
index 000000000..b7d23c4b1
--- /dev/null
+++ b/app/src/main/res/drawable/buddy.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/dummy_thumbnail.xml b/app/src/main/res/drawable/dummy_thumbnail.xml
new file mode 100644
index 000000000..5114fda32
--- /dev/null
+++ b/app/src/main/res/drawable/dummy_thumbnail.xml
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/dummy_thumbnail_playlist.xml b/app/src/main/res/drawable/dummy_thumbnail_playlist.xml
new file mode 100644
index 000000000..683b814c9
--- /dev/null
+++ b/app/src/main/res/drawable/dummy_thumbnail_playlist.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/list_channel_grid_item.xml b/app/src/main/res/layout/list_channel_grid_item.xml
index d9084bbe9..9f92c35a7 100644
--- a/app/src/main/res/layout/list_channel_grid_item.xml
+++ b/app/src/main/res/layout/list_channel_grid_item.xml
@@ -18,7 +18,7 @@
android:layout_centerHorizontal="true"
android:layout_margin="2dp"
android:contentDescription="@string/detail_uploader_thumbnail_view_description"
- android:src="@drawable/buddy_channel_item"
+ android:src="@drawable/buddy"
app:shapeAppearance="@style/CircularImageView"
tools:ignore="RtlHardcoded" />
diff --git a/app/src/main/res/layout/list_channel_mini_item.xml b/app/src/main/res/layout/list_channel_mini_item.xml
index b66e07a12..e03f7c2fa 100644
--- a/app/src/main/res/layout/list_channel_mini_item.xml
+++ b/app/src/main/res/layout/list_channel_mini_item.xml
@@ -17,7 +17,7 @@
android:layout_centerVertical="true"
android:layout_marginStart="3dp"
android:layout_marginRight="15dp"
- android:src="@drawable/buddy_channel_item"
+ android:src="@drawable/buddy"
app:shapeAppearance="@style/CircularImageView"
tools:ignore="RtlHardcoded" />
diff --git a/app/src/main/res/layout/list_comments_mini_item.xml b/app/src/main/res/layout/list_comments_mini_item.xml
index 6bd363311..ba984e0ff 100644
--- a/app/src/main/res/layout/list_comments_mini_item.xml
+++ b/app/src/main/res/layout/list_comments_mini_item.xml
@@ -17,7 +17,7 @@
android:layout_centerVertical="true"
android:layout_marginStart="3dp"
android:layout_marginRight="15dp"
- android:src="@drawable/buddy_channel_item"
+ android:src="@drawable/buddy"
app:shapeAppearance="@style/CircularImageView"
tools:ignore="RtlHardcoded" />
diff --git a/app/src/main/res/layout/picker_subscription_item.xml b/app/src/main/res/layout/picker_subscription_item.xml
index c858ccc4e..f6e5f3587 100644
--- a/app/src/main/res/layout/picker_subscription_item.xml
+++ b/app/src/main/res/layout/picker_subscription_item.xml
@@ -22,7 +22,7 @@
android:layout_width="48dp"
android:layout_height="48dp"
app:shapeAppearance="@style/CircularImageView"
- tools:src="@drawable/buddy_channel_item" />
+ tools:src="@drawable/buddy" />
@color/white
@color/white
+
+ #6C6C6C
+ #999999
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 281fd9ce7..bbcc5d4bb 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -6,6 +6,9 @@
#CD201F
+ #F6F6F6
+ #6E6E6E
+
#EEEEEE
#EEEEEE
diff --git a/assets/buddy_channel_item.svg b/assets/buddy_channel_item.svg
deleted file mode 100644
index 4dec41f9d..000000000
--- a/assets/buddy_channel_item.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
diff --git a/assets/dummy_thumbnail.svg b/assets/dummy_thumbnail.svg
new file mode 100644
index 000000000..bdea80b55
--- /dev/null
+++ b/assets/dummy_thumbnail.svg
@@ -0,0 +1,7 @@
+
+
\ No newline at end of file
diff --git a/assets/dummy_thumbnail_playlist.svg b/assets/dummy_thumbnail_playlist.svg
new file mode 100644
index 000000000..bd4b190aa
--- /dev/null
+++ b/assets/dummy_thumbnail_playlist.svg
@@ -0,0 +1,8 @@
+
+
\ No newline at end of file