From ed96289a395e4b3549f69cced49701d205c85eb2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 5 Sep 2018 01:15:32 +0200 Subject: Applied constant naming convention :pencil2: --- app/src/main/java/me/texx/Texx/CameraActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 4098c9c..7879737 100644 --- a/app/src/main/java/me/texx/Texx/CameraActivity.kt +++ b/app/src/main/java/me/texx/Texx/CameraActivity.kt @@ -80,22 +80,22 @@ class CameraActivity : AppCompatActivity() { } }) - camera_button.setOnClickListener { + button_camera.setOnClickListener { if (camera.sessionType == SessionType.PICTURE) camera.capturePicture() else camera.startCapturingVideo() } - camera_button.setOnLongClickListener { + button_camera.setOnLongClickListener { if (camera.sessionType == SessionType.PICTURE) { camera.sessionType = SessionType.VIDEO val videoButtonDrawable: Drawable = this.resources.getDrawable(R.drawable.focus_marker_outline) videoButtonDrawable.colorFilter = PorterDuffColorFilter(RED, PorterDuff.Mode.SRC_IN) - camera_button.setBackgroundDrawable(videoButtonDrawable) + button_camera.setBackgroundDrawable(videoButtonDrawable) } else { camera.sessionType = SessionType.PICTURE - camera_button.setBackgroundDrawable(this.resources.getDrawable(R.drawable.focus_marker_outline)) + button_camera.setBackgroundDrawable(this.resources.getDrawable(R.drawable.focus_marker_outline)) } true } -- cgit v1.2.3