From b26feaeb46b74e1a6912eac8beab608245565478 Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 17 Mar 2021 18:47:42 +0100 Subject: [PATCH] MainActivity: fix warnings --- .../main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt index 3435651..7c1a74b 100644 --- a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt +++ b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt @@ -46,7 +46,7 @@ class MainActivity : AppCompatActivity() { ensureWritePermission() - findViewById(R.id.fab).setOnClickListener { view -> + findViewById(R.id.fab).setOnClickListener { _ -> if (hasWritePermission) { openCamera() } else { @@ -211,7 +211,7 @@ class MainActivity : AppCompatActivity() { return when (val rc = FFmpeg.execute(command)) { RETURN_CODE_SUCCESS -> true.also { Log.i(TAG, "Mix succeeded.") } RETURN_CODE_CANCEL -> false.also { Log.i(TAG, "Mix cancelled.") } - else -> false .also { Log.e(TAG, "Mix failed!") } + else -> false .also { Log.e(TAG, "Mix failed! rc = $rc") } } }