Skip to content

Commit 354554e

Browse files
committed
Ignore missing ContentDescription
1 parent e82c7af commit 354554e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

vector/src/main/java/im/vector/app/features/roomprofile/polls/active/RoomActivePollsController.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class RoomActivePollsController @Inject constructor(
3333
var listener: Listener? = null
3434

3535
override fun buildModels(data: List<PollSummary.ActivePoll>?) {
36-
if (data == null) return
36+
if (data.isNullOrEmpty()) {
37+
return
38+
}
3739

3840
val host = this
3941
data.forEach { poll ->

vector/src/main/res/layout/item_poll.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
android:src="@drawable/ic_attachment_poll"
2626
app:layout_constraintStart_toStartOf="parent"
2727
app:layout_constraintTop_toBottomOf="@id/pollActiveDate"
28-
app:tint="?vctr_content_secondary" />
28+
app:tint="?vctr_content_secondary"
29+
tools:ignore="ContentDescription" />
2930

3031
<TextView
3132
android:id="@+id/pollActiveTitle"

0 commit comments

Comments
 (0)