settings: refactor QuietHours code

PatchSet: use correct context

Change-Id: I9391e274250128af5f0e9dea4bdfde2485d9a746