show the warning icon again when there is media without description (#4806)
Regression from the Material 3 redesign
This commit is contained in:
parent
bf09433736
commit
ec3921d923
2 changed files with 7 additions and 11 deletions
|
|
@ -843,12 +843,8 @@ class ComposeActivity :
|
|||
)
|
||||
)
|
||||
|
||||
var oneMediaWithoutDescription = false
|
||||
for (media in viewModel.media.value) {
|
||||
if (media.description.isNullOrEmpty()) {
|
||||
oneMediaWithoutDescription = true
|
||||
break
|
||||
}
|
||||
val oneMediaWithoutDescription = viewModel.media.value.any { media ->
|
||||
media.description.isNullOrEmpty()
|
||||
}
|
||||
binding.descriptionMissingWarningButton.visibility = if (oneMediaWithoutDescription) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue