FIX: Blur toggle inversed

This commit is contained in:
Marcos Rodriguez Velez 2024-08-13 17:24:00 -04:00
parent 2e4c3151fc
commit 09565c1d01

View file

@ -92,7 +92,7 @@ const SettingsPrivacy: React.FC = () => {
const onTemporaryScreenshotsValueChange = (value: boolean) => { const onTemporaryScreenshotsValueChange = (value: boolean) => {
setIsLoading(SettingsPrivacySection.TemporaryScreenshots); setIsLoading(SettingsPrivacySection.TemporaryScreenshots);
setIsPrivacyBlurEnabledState(value); setIsPrivacyBlurEnabledState(!value);
setIsLoading(SettingsPrivacySection.None); setIsLoading(SettingsPrivacySection.None);
}; };
@ -145,17 +145,13 @@ const SettingsPrivacy: React.FC = () => {
Component={TouchableWithoutFeedback} Component={TouchableWithoutFeedback}
switch={{ switch={{
onValueChange: onTemporaryScreenshotsValueChange, onValueChange: onTemporaryScreenshotsValueChange,
value: isPrivacyBlurEnabled, value: !isPrivacyBlurEnabled,
disabled: isLoading === SettingsPrivacySection.All, disabled: isLoading === SettingsPrivacySection.All,
}} }}
/> />
<BlueCard> <BlueCard>
<BlueText>{loc.settings.privacy_temporary_screenshots_instructions}</BlueText> <BlueText>{loc.settings.privacy_temporary_screenshots_instructions}</BlueText>
</BlueCard> </BlueCard>
<BlueSpacing20 />
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
<BlueSpacing20 />
<ListItem <ListItem
title={loc.settings.privacy_do_not_track} title={loc.settings.privacy_do_not_track}
Component={TouchableWithoutFeedback} Component={TouchableWithoutFeedback}
@ -186,6 +182,9 @@ const SettingsPrivacy: React.FC = () => {
</BlueCard> </BlueCard>
</> </>
)} )}
<BlueSpacing20 />
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
<BlueSpacing20 /> <BlueSpacing20 />
</ScrollView> </ScrollView>
); );