camera: Clean up code for restarting the preview

 * Fix another ZSL hang and remove redundant code.

Change-Id: I8075829bfc82bc94a8ae8d49234cecc4e3ca1faf
Camera: Add supportsOrientationResizePreview configuration

Current orientation resize preview patch is broken some devices (xe: tf700t). This patch adds
a new configuration for device that doesn't handle properly the orientation resize preview
detection.
Also, the patch adds some styling fixed:
- Avoice call requestLayout twice
- Avoid create variables if mOrientationResize is not going to be used

Change-Id: Ia8ad7a58b9418eedc5edde6b23eb995f5ecfdabd
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Revert all recent changes to preview orientation handling

 * Will revisit after the release.

Revert "Camera: Add supportsOrientationResizePreview configuration"

This reverts commit 1d12cab88c5c1b8ae6bb016f08e95068448cafec.

Revert "camera: Clean up code for restarting the preview"

This reverts commit 917a193a4a7736ac7657a6ac7f15a978bfe3732a.

Revert "camera: Fix hang when changing picture size"

This reverts commit d1a3d5d99006f274955b444c62c4354b425ac081.

Revert "Fix preview state machine after it's restarted due to ratio changes"

This reverts commit 5c40119365eefc1b2d9aef3c0b36cf60c44a33a8.

Revert "Camera: Fix for stretched preview in front camera"

This reverts commit b568826506d5555ee04d0a536c4687e34e648eeb.
Merge branch 'cm-10.1' into martincz