mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[Messages/Compose] Fix browsing Teacher category in dialog.
This commit is contained in:
parent
2ddbc6bbac
commit
f5b2c24ee3
@ -191,7 +191,7 @@ class MessagesComposeFragment : Fragment(), CoroutineScope {
|
||||
b.recipients.chipTokenizer = SpanChipTokenizer<ChipSpan>(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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user