Move some strings to strings.xml
This commit is contained in:
parent
7509916ff4
commit
19e33c6404
3 changed files with 12 additions and 6 deletions
|
@ -76,7 +76,7 @@ class PlayerActivity : AppCompatActivity() {
|
||||||
if (audioRenderer == null) return@setOnClickListener
|
if (audioRenderer == null) return@setOnClickListener
|
||||||
|
|
||||||
val trackSelectionDialogBuilder = TrackSelectionDialogBuilder(
|
val trackSelectionDialogBuilder = TrackSelectionDialogBuilder(
|
||||||
this, "Select audio track",
|
this, resources.getString(R.string.select_audio_track),
|
||||||
viewModel.trackSelector, audioRenderer
|
viewModel.trackSelector, audioRenderer
|
||||||
)
|
)
|
||||||
val trackSelectionDialog = trackSelectionDialogBuilder.build()
|
val trackSelectionDialog = trackSelectionDialogBuilder.build()
|
||||||
|
@ -107,7 +107,7 @@ class PlayerActivity : AppCompatActivity() {
|
||||||
if (subtitleRenderer == null) return@setOnClickListener
|
if (subtitleRenderer == null) return@setOnClickListener
|
||||||
|
|
||||||
val trackSelectionDialogBuilder = TrackSelectionDialogBuilder(
|
val trackSelectionDialogBuilder = TrackSelectionDialogBuilder(
|
||||||
this, "Select subtitle track",
|
this, resources.getString(R.string.select_subtile_track),
|
||||||
viewModel.trackSelector, subtitleRenderer
|
viewModel.trackSelector, subtitleRenderer
|
||||||
)
|
)
|
||||||
val trackSelectionDialog = trackSelectionDialogBuilder.build()
|
val trackSelectionDialog = trackSelectionDialogBuilder.build()
|
||||||
|
|
|
@ -56,4 +56,10 @@
|
||||||
<string name="privacy_policy">Privacy policy</string>
|
<string name="privacy_policy">Privacy policy</string>
|
||||||
<string name="app_info">App info</string>
|
<string name="app_info">App info</string>
|
||||||
<string name="unknown_error">Unknown error</string>
|
<string name="unknown_error">Unknown error</string>
|
||||||
|
<string name="select_audio_track">Select audio track</string>
|
||||||
|
<string name="select_subtile_track">Select subtitle track</string>
|
||||||
|
<string name="mpv_player">MPV Player</string>
|
||||||
|
<string name="mpv_player_summary">Use the experimental MPV Player to play videos. MPV has support for more video, audio and subtitle codecs.</string>
|
||||||
|
<string name="force_software_decoding">Force software decoding</string>
|
||||||
|
<string name="force_software_decoding_summary">Disable hardware decoding and use software decoding. Can be useful if hardware decoding gives weird artifacts.</string>
|
||||||
</resources>
|
</resources>
|
|
@ -42,13 +42,13 @@
|
||||||
<PreferenceCategory app:title="Player">
|
<PreferenceCategory app:title="Player">
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
app:key="mpv_player"
|
app:key="mpv_player"
|
||||||
app:title="MPV Player"
|
app:title="@string/mpv_player"
|
||||||
app:summary="Use the experimental MPV Player to play videos. MPV has support for more video, audio and subtitle codecs."/>
|
app:summary="@string/mpv_player_summary"/>
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
app:key="mpv_disable_hwdec"
|
app:key="mpv_disable_hwdec"
|
||||||
app:dependency="mpv_player"
|
app:dependency="mpv_player"
|
||||||
app:title="Force software decoding"
|
app:title="@string/force_software_decoding"
|
||||||
app:summary="Disable hardware decoding and use software decoding. Can be useful if hardware decoding gives weird artifacts."/>
|
app:summary="@string/force_software_decoding_summary"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
<PreferenceCategory app:title="@string/about">
|
<PreferenceCategory app:title="@string/about">
|
||||||
|
|
Loading…
Reference in a new issue