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
ab8de8ed
Commit
ab8de8ed
authored
Aug 09, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomListItemViewHolder.java
parent
5c7f73e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
RoomListItemViewHolder.java
...ayouthelper/chatroom/roomlist/RoomListItemViewHolder.java
+8
-8
No files found.
app/src/main/java/chat/rocket/android/layouthelper/chatroom/roomlist/RoomListItemViewHolder.java
View file @
ab8de8ed
...
...
@@ -4,7 +4,7 @@ import android.support.v7.widget.RecyclerView;
import
chat.rocket.android.widget.internal.RoomListItemView
;
import
chat.rocket.core.models.Room
;
import
chat.rocket.core.models.Spotlight
Room
;
import
chat.rocket.core.models.Spotlight
;
public
class
RoomListItemViewHolder
extends
RecyclerView
.
ViewHolder
{
public
RoomListItemViewHolder
(
RoomListItemView
itemView
,
...
...
@@ -17,8 +17,8 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder {
if
(
tag
instanceof
Room
)
{
listener
.
onItemClick
((
Room
)
view
.
getTag
());
}
else
if
(
tag
instanceof
Spotlight
Room
)
{
listener
.
onItemClick
((
Spotlight
Room
)
view
.
getTag
());
}
else
if
(
tag
instanceof
Spotlight
)
{
listener
.
onItemClick
((
Spotlight
)
view
.
getTag
());
}
}
});
...
...
@@ -34,13 +34,13 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder {
.
setTag
(
room
);
}
public
void
bind
(
Spotlight
Room
spotlightRoom
)
{
public
void
bind
(
Spotlight
spotlight
)
{
((
RoomListItemView
)
itemView
)
.
setRoomId
(
spotlight
Room
.
getId
())
.
setRoomName
(
spotlight
Room
.
getName
())
.
setRoomType
(
spotlight
Room
.
getType
())
.
setRoomId
(
spotlight
.
getId
())
.
setRoomName
(
spotlight
.
getName
())
.
setRoomType
(
spotlight
.
getType
())
.
setAlert
(
false
)
.
setUnreadCount
(
0
)
.
setTag
(
spotlight
Room
);
.
setTag
(
spotlight
);
}
}
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