Add Open in browser button to audio external players dialog
This change makes the dialog consistent with the video one.
This commit is contained in:
parent
d89a3c6c4d
commit
023f6166ab
|
@ -2166,12 +2166,13 @@ public final class VideoDetailFragment
|
||||||
if (audioTracks.isEmpty()) {
|
if (audioTracks.isEmpty()) {
|
||||||
Toast.makeText(activity, R.string.no_audio_streams_available_for_external_players,
|
Toast.makeText(activity, R.string.no_audio_streams_available_for_external_players,
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
} else if (audioTracks.size() == 1) {
|
} else if (audioTracks.size() == 1) {
|
||||||
startOnExternalPlayer(activity, currentInfo, audioTracks.get(0));
|
startOnExternalPlayer(activity, currentInfo, audioTracks.get(0));
|
||||||
} else {
|
} else {
|
||||||
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
||||||
builder.setTitle(R.string.select_audio_track_external_players);
|
builder.setTitle(R.string.select_audio_track_external_players);
|
||||||
|
builder.setNeutralButton(R.string.open_in_browser, (dialog, i) ->
|
||||||
|
ShareUtils.openUrlInBrowser(requireActivity(), url));
|
||||||
|
|
||||||
final int selectedAudioStream =
|
final int selectedAudioStream =
|
||||||
ListHelper.getDefaultAudioFormat(activity, audioTracks);
|
ListHelper.getDefaultAudioFormat(activity, audioTracks);
|
||||||
|
|
Loading…
Reference in New Issue