From a35b38306d80630f359e2c523ddce6654e742824 Mon Sep 17 00:00:00 2001 From: JG-Cody Date: Sun, 25 Feb 2024 19:08:19 +0100 Subject: [PATCH] settingsfehler entfernt --- .../example/onetap_ssh/fragment/SettingsFragment.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/example/onetap_ssh/fragment/SettingsFragment.java b/app/src/main/java/com/example/onetap_ssh/fragment/SettingsFragment.java index 4783e90..ca65011 100644 --- a/app/src/main/java/com/example/onetap_ssh/fragment/SettingsFragment.java +++ b/app/src/main/java/com/example/onetap_ssh/fragment/SettingsFragment.java @@ -121,14 +121,9 @@ public class SettingsFragment extends NamedFragment { }); } - binding.settingsScreenSecurity.setChecked(SettingsUtil.isScreenSecurity(requireContext())); - binding.settingsScreenSecurity.setOnCheckedChangeListener((view, checked) -> { - SettingsUtil.setScreenSecurity(requireContext(), checked); - requireActivity().recreate(); - }); - binding.settingsHideCodes.setChecked(SettingsUtil.isHideCodes(requireContext())); - binding.settingsHideCodes.setOnCheckedChangeListener((view, checked) -> SettingsUtil.setHideCodes(requireContext(), checked)); + + binding.settingsShowImages.setChecked(SettingsUtil.isShowImages(requireContext())); binding.settingsShowImages.setOnCheckedChangeListener((view, checked) -> SettingsUtil.setShowImages(requireContext(), checked));