GlobalActions: Fix possible race condition when showing dialog.

Depending on the presence of a previous dialog, the newly generated one
gets either immediately displayed (no old dialog) or shortly delayed
(after dismissal of the existing one).
If a new show event happens (by rapid fire of the power key, for instance,
using a keyboard with fast-repeating events) during that delay, a new
dialog will be immediately displayed, and when the delayed show triggers
it'll conflict with it (and bring everything down).

This moves the creation of the new Dialog object to _before_ showing
it (delayed or not), instead of the show method itself, to ensure the
object isn't clobbered by competing/sequential calls to handleShow()

Change-Id: Ie4d9a8507ebaf59da31869c38b98c3c98a74468e
frameworks: Smooth background gradient

Credit to UBER for the images

Change-Id: I3655e9917610348100fa6cb5cede66a63ca82538
Use normal holo style

Change-Id: I2232549e691d0a05e852f41103f8675cdaf03005
Added power menu settings

Conflicts:
	core/java/android/provider/Settings.java