fix some camera state glitches around recording and capturing

This commit is contained in:
tibbi
2018-06-08 22:38:02 +02:00
parent 13d4f25810
commit afa5a46303
2 changed files with 11 additions and 2 deletions

View File

@ -37,7 +37,9 @@ const val STATE_PICTURE_TAKEN = 2
const val STATE_WAITING_LOCK = 3
const val STATE_WAITING_PRECAPTURE = 4
const val STATE_WAITING_NON_PRECAPTURE = 5
const val STATE_RECORDING = 6
const val STATE_STARTING_RECORDING = 6
const val STATE_STOPING_RECORDING = 7
const val STATE_RECORDING = 8
fun compensateDeviceRotation(orientation: Int, isUsingFrontCamera: Boolean) = when {
orientation == ORIENT_LANDSCAPE_LEFT -> 270