Merge pull request #2987 from ByteHamster/audio-settings-dialog
Hiding settings that ExoPlayer does not yet support
This commit is contained in:
commit
6d50be18db
|
@ -534,11 +534,16 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
|
|||
stereoToMono.setText(stereoToMono.getText() + " [" + sonicOnly + "]");
|
||||
}
|
||||
|
||||
if (UserPreferences.useExoplayer()) {
|
||||
barRightVolume.setEnabled(false);
|
||||
}
|
||||
|
||||
final CheckBox skipSilence = (CheckBox) dialog.findViewById(R.id.skipSilence);
|
||||
skipSilence.setChecked(UserPreferences.isSkipSilence());
|
||||
if (!UserPreferences.useExoplayer()) {
|
||||
skipSilence.setEnabled(false);
|
||||
skipSilence.setText(skipSilence.getText() + "[ ExoPlayer only ]");
|
||||
String exoplayerOnly = getString(R.string.exoplayer_only);
|
||||
skipSilence.setText(skipSilence.getText() + " [" + exoplayerOnly + "]");
|
||||
}
|
||||
skipSilence.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
||||
UserPreferences.setSkipSilence(isChecked);
|
||||
|
|
|
@ -692,6 +692,7 @@
|
|||
<string name="audio_effects">Audio Effects</string>
|
||||
<string name="stereo_to_mono">Downmix: Stereo to mono</string>
|
||||
<string name="sonic_only">Sonic only</string>
|
||||
<string name="exoplayer_only">ExoPlayer only</string>
|
||||
|
||||
<!-- proxy settings -->
|
||||
<string name="proxy_type_label">Type</string>
|
||||
|
|
Loading…
Reference in New Issue