Quick Settings: remove unneeded casts, update resources when asked

Ported from:
http://review.cyanogenmod.org/#/c/29331
http://review.cyanogenmod.org/#/c/29350

Change-Id: Id00ebdc4e4c5a2a3e7edc21e2e51468d9bc0d59a