Camera : Powerkey shutter (3/3)

Add PREVENT_POWER_KEY permission for camera powerkey shutter

Change-Id: Ic5254241941cd2334c215d578936f5f08e484c5c
Merge branch 'jb-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp
Gallery2: Use ICS alert drawable

Same bug here. It's using the old compability drawable
instead of the Holo theme one.

Change-Id: Ia84ce1d305ee63fc6bc1fdb407a91b3421842eb1
Merge branch 'jb-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp
Merge branch 'jb-mr0-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp-merge
Gallery2: Fix hard code message.

Change-Id: I3fb43c7e93e8dbb131df4af40aebffdb28540d2b
Gallery2: Updated italian translation

	Some minor changes

Change-Id: I4a5671b9a749062d9757cb9e7381670527915c65
Added missing hungarian translation

Change-Id: Iaeb446bddb2bc961b6dd55ba8794a6ccd5c09274
Added system to build LegacyCamera if specified

Must be built with the LegacyCamera commit that moves PanoramaActivity
to the root directory.
Inspired by a patch by Bryan Gantt <dragonzkiller@gmail.com>
Cleaned up and enhanced by Rashed Abdel-Tawab <rashedabdeltawab@gmail.com>

Patch set 1: Initial Commit
Patch set 2: Fix errors with libjni_legacymosaic.so not building
Patch set 3: Clean-up the code

Change-Id: Id59e72ada6893c6f6de2b2f486a637509a50d71d
Revert "Added system to build LegacyCamera if specified"

This patch does the complete reverse of what it's supposed to.

"ifeq (,$(findstring LegacyCamera,$(PRODUCT_PACKAGES)))" matches the _absence_ of LegacyCamera in the list of packages.


This reverts commit dd9c5ca25902e723b2229d1438be4c297e6f348a
Added system to build LegacyCamera if specified

Some devices (all 2011 Xperias, and most 2010 legacy devices) cannot use the
default Jellybean camera. Instead they can run the LegacyCamera app
This commit enables using LegacyCamera wrapped into Gallery apk like the
normal JB camera is wrapped into Gallery

To use, just add BOARD_USES_LEGACY_CAMERA := true to your BoardConfig

Credits:
Inspired by a patch by Bryan Gantt <dragonzkiller@gmail.com>
Enhanced by Rashed Abdel-Tawab <rashedabdeltawab@gmail.com>
Thanks for tips and hints from:
	- Konsta Tuomio <konsta09@gmail.com>
	- Arnav Gupta <championswimmer@gmail.com>
	- Ricardo Cerqueira <cyanogenmod@cerqueira.org>

Changelog:
Patch set 1: Fixed up the code
Patch set 2: Use BOARD_USES_LEGACY_CAMERA instead
Patch set 3: Fix up normal Camera stuff
Patch set 4: Clean up. This should be it
Patch set 5: Reomved whitespace, documented the if's and else's, ready to merge now

Change-Id: I2e07032e6a097b8334762af789bf2c72f2515cab
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into HEAD

Change-Id: Ibe51e0ac8eaf3a2543209be60f7986f35e041034
Gallery : Remove LOCAL_SDK_VERSION

This is needed since we need access to private apis and 4.2's build system
stubs if you have it set to "current"

Change-Id: I1e2f985238f317fb3595962801bb9b3d2792dc5a
Gallery : Remove LOCAL_SDK_VERSION

This is needed since we need access to private apis and 4.2's build system
stubs if you have it set to "current"

Change-Id: I1e2f985238f317fb3595962801bb9b3d2792dc5a
Merge branch 'cm-10.1' into gerrit

Change-Id: I01a6678ebc24654dc7ec4addbdc427d8f859dc67