GlobalAction dialog ref not set to null

When a GlobalAction dialog is dismissed when screen goes into
sleep the reference mDialog is not set to null. Next time the
long presses power button and brings up the GlobalAction dialog
the old reference still exist and we try to dismiss the dialog
again even if it does not exist.

The dialog reference in this case holds on to the dialog object
using more memory than neccesary, and in rare cases we might get
a crash when the dialog object is dissmissed the second time.

Change-Id: I44ef1c385d90777e8f6dd9fe111eb3d9b0d3cf3f
fix left/right ribbon height

Thabks to creeve4 for finding this.

Change-Id: Ie5e0a9b394135d19ec190f92db91830e13dc1d1f
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/aokp/AokpSwipeRibbon.java
Disable screen dimming when charging (1/2)

new setting to disable screen dimming if stay awake is enabled

Change-Id: I65b845bf98420445f51e3740a6c1b6fd39e592ef