mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-04 14:51:48 +00:00
Fix PlaylistAppendDialog showing when no local playlists exist
This commit is contained in:
@@ -126,4 +126,10 @@ public class LocalPlaylistManager {
|
||||
}).subscribeOn(Schedulers.io());
|
||||
}
|
||||
|
||||
public Maybe<Boolean> hasPlaylists() {
|
||||
return playlistTable.getCount()
|
||||
.firstElement()
|
||||
.map(count -> count > 0)
|
||||
.subscribeOn(Schedulers.io());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user