diff options
author | Marvin Borner | 2018-09-05 01:15:32 +0200 |
---|---|---|
committer | Marvin Borner | 2018-09-05 01:15:32 +0200 |
commit | ed96289a395e4b3549f69cced49701d205c85eb2 (patch) | |
tree | e2f520607c2c729cfeeb5cef07ef710a707b0016 /app/src/main/java/me/texx/Texx/CameraActivity.kt | |
parent | 8e2cf1b4a93c0152e9f3d44a77a66fe4d1584dc2 (diff) |
Applied constant naming convention :pencil2:
Diffstat (limited to 'app/src/main/java/me/texx/Texx/CameraActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/CameraActivity.kt | 8 |
1 files changed, 4 insertions, 4 deletions
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 } |