Correctly restore brightness customize dialog hierarchy.

This is especially important when rotating the device.

PS 2 : Apply to all dialogs! :)

Change-Id: Iaf1ceb46943e9d0a171d6a75d3d446dbec205095
Merge "Correctly restore brightness customize dialog hierarchy." into jb4.2