fix: remove duplicate else branches in when expressions

This commit is contained in:
xiajiid
2026-02-10 17:46:40 +08:00
parent cc76b37b39
commit 0df67b5b13
3 changed files with 0 additions and 18 deletions

View File

@@ -326,12 +326,6 @@ class CameraActivity : AppCompatActivity() {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
else -> {
Log.e(TAG, "其他错误: ${exception.imageCaptureError}")
runOnUiThread {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
}
}
}

View File

@@ -296,12 +296,6 @@ class SimpleCameraActivity : AppCompatActivity() {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
else -> {
Log.e(TAG, "其他错误: ${exception.imageCaptureError}")
runOnUiThread {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
}
}
}

View File

@@ -304,12 +304,6 @@ class WatermarkCameraActivity : AppCompatActivity() {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
else -> {
Log.e(TAG, "其他错误: ${exception.imageCaptureError}")
runOnUiThread {
Toast.makeText(baseContext, "拍照失败: ${exception.message}", Toast.LENGTH_LONG).show()
}
}
}
}
}