Fix lock settings pattern crash on configuration change

A helper class used in LockPatternView.onSaveInstanceState() and
.onRestoreInstanceState() wasn't set, causing to NPE settings once
a configuration change would happen while displaying lock pattern
input.

This is now set on creation.

Test case:
1) Enable rotation on device.
2) Open Settings/ChooseLockPattern preference.
3) Rotate device

Change-Id: Ic8091bc92dee2a9a23f4ddebd6de4111ec8ac318
settings: Privacy Guard support

 * Add toggle to InstalledAppDetails to enable/disable privacy guard flag on
   a per-application basis.
 * Add toggle to enable privacy guard by default for applications.

Change-Id: If03aa5319c520b6c4a78887f0f46ef1443ddaa83

Conflicts:

	AndroidManifest.xml
	res/layout/installed_app_details.xml
	res/values/cm_strings.xml
	src/com/android/settings/applications/InstalledAppDetails.java

Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>