Remove misleading first "Non" from getNonUrlAndNonTorrentStreams
This commit is contained in:
parent
2019af831a
commit
4e87f5aabc
4 changed files with 10 additions and 10 deletions
|
|
@ -137,7 +137,7 @@ public final class ListHelper {
|
|||
* @return a stream list which only contains URL streams and non-torrent streams
|
||||
*/
|
||||
@NonNull
|
||||
public static <S extends Stream> List<S> getNonUrlAndNonTorrentStreams(
|
||||
public static <S extends Stream> List<S> getUrlAndNonTorrentStreams(
|
||||
final List<S> streamList) {
|
||||
return getFilteredStreamList(streamList,
|
||||
stream -> stream.isUrl() && stream.getDeliveryMethod() != DeliveryMethod.TORRENT);
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ import org.schabi.newpipe.util.external_communication.ShareUtils;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import static org.schabi.newpipe.util.ListHelper.getNonUrlAndNonTorrentStreams;
|
||||
import static org.schabi.newpipe.util.ListHelper.getUrlAndNonTorrentStreams;
|
||||
|
||||
public final class NavigationHelper {
|
||||
public static final String MAIN_FRAGMENT_TAG = "main_fragment_tag";
|
||||
|
|
@ -227,7 +227,7 @@ public final class NavigationHelper {
|
|||
}
|
||||
|
||||
final List<AudioStream> audioStreamsForExternalPlayers =
|
||||
getNonUrlAndNonTorrentStreams(audioStreams);
|
||||
getUrlAndNonTorrentStreams(audioStreams);
|
||||
if (audioStreamsForExternalPlayers.isEmpty()) {
|
||||
Toast.makeText(context, R.string.no_audio_streams_available_for_external_players,
|
||||
Toast.LENGTH_SHORT).show();
|
||||
|
|
@ -250,7 +250,7 @@ public final class NavigationHelper {
|
|||
|
||||
final List<VideoStream> videoStreamsForExternalPlayers =
|
||||
ListHelper.getSortedStreamVideosList(context,
|
||||
getNonUrlAndNonTorrentStreams(videoStreams), null, false, false);
|
||||
getUrlAndNonTorrentStreams(videoStreams), null, false, false);
|
||||
if (videoStreamsForExternalPlayers.isEmpty()) {
|
||||
Toast.makeText(context, R.string.no_video_streams_available_for_external_players,
|
||||
Toast.LENGTH_SHORT).show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue