Skip to content

Commit

Permalink
fix: Dont restart the service automatically when enabling second screen
Browse files Browse the repository at this point in the history
  • Loading branch information
axel358 committed Sep 9, 2023
1 parent e3fbeb3 commit f1dad5e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit f1dad5e

Please sign in to comment.