提交 372a0f50 编写于 作者: B Ben Weiss 提交者: Ben Weiss

One less findViewById

上级 325754e0
......@@ -49,8 +49,7 @@ class FilterActivity : AppCompatActivity() {
val imageUriExtra = intent.getStringExtra(Constants.KEY_IMAGE_URI)
if (!imageUriExtra.isNullOrEmpty()) {
imageUri = Uri.parse(imageUriExtra)
val imageView = findViewById<ImageView>(R.id.imageView)
Glide.with(this).load(imageUri).into(imageView)
Glide.with(this).load(imageUri).into(binding.imageView)
}
binding.apply.setOnClickListener {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册