From ba84e7eeadafcbdd97c8a0cbd1dd52a1e2b2dc68 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Wed, 19 Jul 2023 23:36:38 +0200 Subject: [PATCH] Display "Unknown quality" if quality is unknown and not MediaFormat name --- .../main/java/org/schabi/newpipe/util/StreamItemAdapter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/StreamItemAdapter.java b/app/src/main/java/org/schabi/newpipe/util/StreamItemAdapter.java index 691b39403..d5b73d0b6 100644 --- a/app/src/main/java/org/schabi/newpipe/util/StreamItemAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/util/StreamItemAdapter.java @@ -154,8 +154,6 @@ public class StreamItemAdapter extends BaseA final AudioStream audioStream = ((AudioStream) stream); if (audioStream.getAverageBitrate() > 0) { qualityString = audioStream.getAverageBitrate() + "kbps"; - } else if (mediaFormat != null) { - qualityString = mediaFormat.getName(); } else { qualityString = context.getString(R.string.unknown_quality); }