commit | efad302f4529a5e024b6b956b35c272ec8807eb4 | [log] [tgz] |
---|---|---|
author | Sebastiano Barezzi <barezzisebastiano@gmail.com> | Mon Oct 17 02:58:06 2022 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Mon Oct 17 14:02:30 2022 +0200 |
tree | f20ba199737c5bfb3db8472f889c01e81bf17436 | |
parent | 10d6900ead1760548b7d690ca2d83d927b4619fa [diff] |
Aperture: Reset exposure status on manual focus Change-Id: I42080722367da70e938eaee77e7550db546de2a0
diff --git a/app/src/main/java/org/lineageos/aperture/CameraActivity.kt b/app/src/main/java/org/lineageos/aperture/CameraActivity.kt index 2e828fe..6b7e4d1 100644 --- a/app/src/main/java/org/lineageos/aperture/CameraActivity.kt +++ b/app/src/main/java/org/lineageos/aperture/CameraActivity.kt
@@ -371,6 +371,10 @@ return@setOnTouchListener false } viewFinder.setOnClickListener { view -> + // Reset exposure level to 0 EV + cameraController.cameraControl?.setExposureCompensationIndex(0) + exposureLevel.progress = 0.5f + exposureLevel.isVisible = true viewFinderTouchEvent?.let { viewFinderFocus.x = it.x - (viewFinderFocus.width / 2)