From 37e895cdca65790f7c95700a116481a52262a062 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Wed, 7 Feb 2024 00:23:25 +0800 Subject: [PATCH] Decouple `hideHvEvents` and `requestNews` settings (#697) Visiting gallery page on e-hentai will show HV events as well. --- .../kotlin/com/hippo/ehviewer/ui/settings/EhScreen.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/settings/EhScreen.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/settings/EhScreen.kt index 4abab983e..29784dbb2 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/settings/EhScreen.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/settings/EhScreen.kt @@ -361,12 +361,10 @@ fun EhScreen(navigator: DestinationsNavigator) { } } } - AnimatedVisibility(visible = reqNews.value) { - SwitchPreference( - title = stringResource(id = R.string.settings_eh_hide_hv_events), - value = Settings::hideHvEvents, - ) - } + SwitchPreference( + title = stringResource(id = R.string.settings_eh_hide_hv_events), + value = Settings::hideHvEvents, + ) } } }