mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-19 16:24:57 +00:00
Merge pull request #2394 from Redirion/patch-1
Fixed selected subtitle track name not being shown
This commit is contained in:
commit
171b258d5c
@ -297,6 +297,7 @@ public abstract class VideoPlayer extends BasePlayer
|
||||
return true;
|
||||
});
|
||||
|
||||
// Add all available captions
|
||||
for (int i = 0; i < availableLanguages.size(); i++) {
|
||||
final String captionLanguage = availableLanguages.get(i);
|
||||
MenuItem captionItem = captionPopupMenu.getMenu().add(captionPopupMenuGroupId,
|
||||
@ -506,7 +507,7 @@ public abstract class VideoPlayer extends BasePlayer
|
||||
}
|
||||
|
||||
// Normalize mismatching language strings
|
||||
final String preferredLanguage = trackSelector.getParameters().preferredTextLanguage;
|
||||
final String preferredLanguage = trackSelector.getPreferredTextLanguage();
|
||||
// Build UI
|
||||
buildCaptionMenu(availableLanguages);
|
||||
if (trackSelector.getParameters().getRendererDisabled(textRenderer) ||
|
||||
|
Loading…
Reference in New Issue
Block a user