How do I check if the switchpreference is true or false in OnLifecycleEvent? I can play/stop the service when clicking the switchpreference but since I also use OnLifecycleE