MainActivity: fix warnings

This commit is contained in:
dece 2021-03-17 18:47:42 +01:00
parent 89b9736403
commit b26feaeb46

View file

@ -46,7 +46,7 @@ class MainActivity : AppCompatActivity() {
ensureWritePermission()
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener { view ->
findViewById<FloatingActionButton>(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") }
}
}