From 94077ea9f7f27f2c69a891bf36fb8da33583cbea Mon Sep 17 00:00:00 2001 From: AbdullahM0hamed <25087116+AbdullahM0hamed@users.noreply.github.com> Date: Fri, 13 Jan 2023 20:24:53 +0000 Subject: [PATCH] comment --- .../lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt index d06ab90c..fc064132 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt @@ -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) {