diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeFragment.kt index e0a4d2c1..d8a371b5 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeFragment.kt @@ -191,7 +191,7 @@ class MessagesComposeFragment : Fragment(), CoroutineScope { b.recipients.chipTokenizer = SpanChipTokenizer(activity, object : ChipSpanChipCreator() { override fun createChip(context: Context, text: CharSequence, data: Any?): ChipSpan? { val teacher = data as Teacher? - if (teacher!!.id in -24L..-1L) { + if (teacher!!.id in -24L..0L) { val type = (teacher.id * -1).toInt() val textColorPrimary = android.R.attr.textColorPrimary.resolveAttr(activity) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeSuggestionAdapter.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeSuggestionAdapter.kt index f63abcac..0a881ce4 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeSuggestionAdapter.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesComposeSuggestionAdapter.kt @@ -39,7 +39,7 @@ class MessagesComposeSuggestionAdapter( if (teacher.image == null) teacher.image = getProfileImage(48, 24, 16, 12, 1, teacher.fullName) - if (teacher.id in -24L..-1L) { + if (teacher.id in -24L..0L) { name.text = Teacher.typeName(context, (teacher.id * -1).toInt()) type.setText(R.string.teachers_browse_category) image.setImageBitmap(null)