Correctly restore brightness customize dialog hierarchy.

This is especially important when rotating the device.