An example of how to save an enum to shared preferences and retrieve it to be used in a switch