mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
comment
This commit is contained in:
parent
1dcdfbaca7
commit
94077ea9f7
1 changed files with 5 additions and 0 deletions
|
@ -418,6 +418,11 @@ class SubtitlesFragment : Fragment() {
|
|||
}
|
||||
|
||||
subtitles_disable_subs?.isChecked = state.removeSubs
|
||||
|
||||
/*
|
||||
* If the toggle is checked, store the current language and then set the subtitle language to none
|
||||
* If the toggle is unchecked, set the current language to the language that was stored when the toggle was checked
|
||||
*/
|
||||
subtitles_disable_subs?.setOnCheckedChangeListener { _, b ->
|
||||
state.removeSubs = b
|
||||
if (b) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue