Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit fbd11e98 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #6623 from thundernest/no_recipients

Don't crash when there are not recipients to display
parents 180626c7 e4c452de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -108,6 +108,11 @@ class RecipientNamesView(context: Context, attrs: AttributeSet?) : ViewGroup(con
    }

    override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
        if (numberOfRecipients == 0) {
            // There's nothing to display
            return
        }

        val availableWidth = width

        val recipientLayoutData = recipientLayoutCreator.createRecipientLayout(