Skip to content

Commit

Permalink
Ignore missing ContentDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaturel committed Jan 4, 2023
1 parent e82c7af commit 354554e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class RoomActivePollsController @Inject constructor(
var listener: Listener? = null

override fun buildModels(data: List<PollSummary.ActivePoll>?) {
if (data == null) return
if (data.isNullOrEmpty()) {
return
}

val host = this
data.forEach { poll ->
Expand Down
3 changes: 2 additions & 1 deletion vector/src/main/res/layout/item_poll.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
android:src="@drawable/ic_attachment_poll"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/pollActiveDate"
app:tint="?vctr_content_secondary" />
app:tint="?vctr_content_secondary"
tools:ignore="ContentDescription" />

<TextView
android:id="@+id/pollActiveTitle"
Expand Down

0 comments on commit 354554e

Please sign in to comment.