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));