remove dependency if airplane mode is not set

Change-Id: I8c01b4ac9cea8271b4a8140b24cfa56280435448
Try to fix null window errors when hangling home action

Change-Id: I6b5cd4010fd619cbc9c1294d76d74b82f61f7839
Remove useless/repetitive code

fixScale(float) method has been extracted from the code but the original
code has been kept in place. Because of this, the animation scale is
"fixed" twice which is not necessary. This patch, simply call
fixScale(float) once and stores the result of it in the scale variable.

Change-Id: I50aeacbc2c13ebbf447506ae4309d50c0e313837
Fix leak in videoEditor_renderMediaItemPreviewFrame

This change makes sure that the pString is released
even if any of the error paths are taken later.

Change-Id: I533f8254cb853767a21571cddb1c130f8efde2b4
Re-add lockscreen music controls toggle.

Change-Id: I70fb6c0d20caad7af01a45b4a9374eb107a554a3

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
Fix empty page being activated if music controls are disabled and music
is playing.

Change-Id: I76e00e4c58dc86ce0bf4e88c0e6be551950b6969