From f1dad5eeadb2a2eb6ce5fb55abab14cd6511b204 Mon Sep 17 00:00:00 2001 From: Axel358 Date: Sat, 9 Sep 2023 14:03:48 -0400 Subject: [PATCH] fix: Dont restart the service automatically when enabling second screen --- .../cu/axel/smartdock/fragments/AdvancedPreferences.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/cu/axel/smartdock/fragments/AdvancedPreferences.java b/app/src/main/java/cu/axel/smartdock/fragments/AdvancedPreferences.java index edc1a183..7e195225 100644 --- a/app/src/main/java/cu/axel/smartdock/fragments/AdvancedPreferences.java +++ b/app/src/main/java/cu/axel/smartdock/fragments/AdvancedPreferences.java @@ -38,10 +38,7 @@ public void onCreatePreferences(Bundle arg0, String arg1) { hasWriteSettingsPermission = DeviceUtils.hasWriteSettingsPermission(getActivity()); preferLastDisplay.setOnPreferenceClickListener((Preference p1) -> { - if (hasWriteSettingsPermission) - DeviceUtils.restartService(getActivity()); - else - showAccessibilityDialog(getActivity()); + showAccessibilityDialog(getActivity()); return true; });