add always on torch mode for image capture

This commit is contained in:
darthpaul
2022-10-23 00:00:22 +01:00
parent 122841b641
commit 3d4c38de04
6 changed files with 52 additions and 10 deletions

View File

@ -23,6 +23,7 @@ const val PHOTO_QUALITY = "photo_quality"
const val FLASH_OFF = 0
const val FLASH_ON = 1
const val FLASH_AUTO = 2
const val FLASH_ALWAYS_ON = 3
fun compensateDeviceRotation(orientation: Int) = when (orientation) {
ORIENT_LANDSCAPE_LEFT -> 270