I have the following SwitchPreferenceCompat which I want to use in order to enable dark theme in my app:
SwitchPreferenceCompat