fix: quick fix out of bounds exception (#588)
This commit is contained in:
parent
b6f39da7ef
commit
39e320366e
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class ShortcutHelper(private val context: Context) {
|
||||||
setPersons(persons)
|
setPersons(persons)
|
||||||
setIntent(intent)
|
setIntent(intent)
|
||||||
setRank(1)
|
setRank(1)
|
||||||
if (!conv.isGroupConversation && !conv.usesCustomTitle) {
|
if (!conv.isGroupConversation && !conv.usesCustomTitle && persons.isNotEmpty()) {
|
||||||
setIcon(persons[0].icon)
|
setIcon(persons[0].icon)
|
||||||
} else {
|
} else {
|
||||||
val icon = if (conv.isGroupConversation) {
|
val icon = if (conv.isGroupConversation) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue