Removed badly hacked default playlist thumbnail icon
The defaults should be supplied to the image loading software not the database library. This would also break when we shrink resources as that would rename the resources. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
7c76791db3
commit
97e7272151
3 changed files with 8 additions and 35 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package org.schabi.newpipe.local.dialog;
|
||||
|
||||
import static org.schabi.newpipe.database.playlist.model.PlaylistEntity.DEFAULT_THUMBNAIL_ID;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
|
@ -14,7 +16,6 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||
|
||||
import org.schabi.newpipe.NewPipeDatabase;
|
||||
import org.schabi.newpipe.R;
|
||||
import org.schabi.newpipe.database.playlist.model.PlaylistEntity;
|
||||
import org.schabi.newpipe.database.playlist.PlaylistDuplicatesEntry;
|
||||
import org.schabi.newpipe.database.stream.model.StreamEntity;
|
||||
import org.schabi.newpipe.local.LocalItemListAdapter;
|
||||
|
|
@ -160,8 +161,8 @@ public final class PlaylistAppendDialog extends PlaylistDialog {
|
|||
.subscribe(ignored -> {
|
||||
successToast.show();
|
||||
|
||||
if (playlist.getThumbnailUrl() != null
|
||||
&& playlist.getThumbnailUrl().equals(PlaylistEntity.DEFAULT_THUMBNAIL)
|
||||
if (playlist.getThumbnailStreamId() != null
|
||||
&& playlist.getThumbnailStreamId() == DEFAULT_THUMBNAIL_ID
|
||||
) {
|
||||
playlistDisposables.add(manager
|
||||
.changePlaylistThumbnail(playlist.getUid(), streams.get(0).getUid(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue