Camera: Cleanup hardware key handling
* Fix power shutter behaviour in camcorder mode
* Disable volume change while in panorama mode, volume buttons should only
handle camera operations while in the camera
* Add camera/power/volume key shutter handling in panorama mode
On devices with a hardware camera key:
* Disable power & volume shutter features
* Volume buttons control the zoom
On devices without a hardware camera key:
* When power shutter is disabled, volume buttons control the shutter (like AOSP)
* When power shutter is enabled, volume buttons control the zoom
Change-Id: I141946d5b6f5aec8b1e9a9f99270d30295596079
diff --git a/Android.mk b/Android.mk
index 4acc5b8..a8cdcb9 100755
--- a/Android.mk
+++ b/Android.mk
@@ -25,6 +25,8 @@
--version-name "$(version_name_package)" \
--version-code $(version_code_package) \
+LOCAL_JAVA_LIBRARIES := org.lineageos.platform.internal
+
LOCAL_PACKAGE_NAME := Snap
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PRIVATE_PLATFORM_APIS:=true