Fixed onResume to read the brightness levels and auto-brightness and adjust the switch accordingly