Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
259ba172
Commit
259ba172
authored
Nov 23, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update attribute name.
parent
a652728c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ChatListAdapter.kt
.../java/chat/rocket/android/app/chatlist/ChatListAdapter.kt
+3
-2
No files found.
app/src/main/java/chat/rocket/android/app/chatlist/ChatListAdapter.kt
View file @
259ba172
package
chat.rocket.android.app.chatlist
import
DateTimeHelper
import
DrawableHelper
import
android.content.Context
import
android.support.v7.widget.RecyclerView
...
...
@@ -27,7 +28,7 @@ class ChatListAdapter(private var dataSet: MutableList<Chat>, private val contex
holder
.
userAvatar
.
setImageURI
(
chat
.
userAvatarUri
)
holder
.
chatName
.
text
=
chat
.
name
holder
.
lastMessage
.
text
=
chat
.
lastMessage
holder
.
lastMessage
Timestamp
.
text
=
DateTimeHelper
.
getDate
(
chat
.
lastMessageDateTime
,
context
)
holder
.
lastMessage
DateTime
.
text
=
DateTimeHelper
.
getDate
(
chat
.
lastMessageDateTime
,
context
)
when
(
chat
.
type
)
{
"p"
->
DrawableHelper
.
compoundDrawable
(
holder
.
chatName
,
DrawableHelper
.
getDrawableFromId
(
R
.
drawable
.
ic_lock_outline_black
,
context
))
...
...
@@ -59,7 +60,7 @@ class ChatListAdapter(private var dataSet: MutableList<Chat>, private val contex
val
userAvatar
:
SimpleDraweeView
=
itemView
.
image_user_avatar
val
chatName
:
TextView
=
itemView
.
text_chat_name
val
lastMessage
:
TextView
=
itemView
.
text_last_message
val
lastMessage
Timestamp
:
TextView
=
itemView
.
text_last_message_timestamp
val
lastMessage
DateTime
:
TextView
=
itemView
.
text_last_message_date_time
val
unreadMessage
:
TextView
=
itemView
.
text_total_unread_messages
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment