From c758e977ed96cf1c4b2bce6f09775ea8401dd4c1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 2 Sep 2018 02:01:27 +0200 Subject: Found disadvantage of VIDEO: Decreased sharpness -> remove --- app/src/main/java/me/texx/Texx/CameraActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/me/texx/Texx/CameraActivity.kt') diff --git a/app/src/main/java/me/texx/Texx/CameraActivity.kt b/app/src/main/java/me/texx/Texx/CameraActivity.kt index eaf0333..da1fc41 100644 --- a/app/src/main/java/me/texx/Texx/CameraActivity.kt +++ b/app/src/main/java/me/texx/Texx/CameraActivity.kt @@ -47,7 +47,7 @@ class CameraActivity : AppCompatActivity() { } private fun initCameraLayout() { - camera.sessionType = SessionType.VIDEO // TODO: Find out why VIDEO is faster (-> any disadvantages?) + camera.sessionType = SessionType.PICTURE setGestures() setListeners() } @@ -79,7 +79,7 @@ class CameraActivity : AppCompatActivity() { videoButtonDrawable.colorFilter = PorterDuffColorFilter(RED, PorterDuff.Mode.SRC_IN) camera_button.setBackgroundDrawable(videoButtonDrawable) } else { - //camera.sessionType = SessionType.PICTURE // -> faster? + camera.sessionType = SessionType.PICTURE camera_button.setBackgroundDrawable(this.resources.getDrawable(R.drawable.focus_marker_outline)) } true -- cgit v1.2.3