i have a switch that when changed is supposed to save the value of the switch to the ShraedPreferences. On my real device in debug mode evertything is working but when i\'m