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
8bbb746d
Commit
8bbb746d
authored
Sep 19, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomListFragment.kt
parent
1ebff5c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
RoomListFragment.kt
...rocket/android/fragment/chatroom/list/RoomListFragment.kt
+10
-9
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/list/RoomListFragment.kt
View file @
8bbb746d
...
...
@@ -89,14 +89,14 @@ class RoomListFragment : Fragment(), RoomListContract.View {
token
,
userId
)
}
R
.
id
.
action_file_list
->
{
activity
.
title
=
getString
(
R
.
string
.
fragment_room_list_file_list_title
)
presenter
.
requestFileList
(
roomId
,
roomType
,
hostname
,
token
,
userId
)
}
//
R.id.action_file_list -> {
//
activity.title = getString(R.string.fragment_room_list_file_list_title)
//
presenter.requestFileList(roomId,
//
roomType,
//
hostname,
//
token,
//
userId)
//
}
R
.
id
.
action_member_list
->
{
activity
.
title
=
getString
(
R
.
string
.
fragment_room_list_member_list_title
)
presenter
.
requestMemberList
(
roomId
,
...
...
@@ -138,11 +138,12 @@ class RoomListFragment : Fragment(), RoomListContract.View {
}
}
override
fun
showMemberList
(
dataSet
:
ArrayList
<
User
>)
{
override
fun
showMemberList
(
dataSet
:
ArrayList
<
User
>
,
total
:
String
)
{
if
(
dataSet
.
isEmpty
())
{
showMessage
(
getString
(
R
.
string
.
fragment_room_list_no_member_list_to_show
))
}
else
{
waitingView
.
visibility
=
View
.
GONE
activity
.
title
=
getString
(
R
.
string
.
fragment_room_list_member_list_title
)
+
" ("
+
total
+
")"
recyclerView
.
adapter
=
RoomMemberListAdapter
(
dataSet
,
hostname
,
context
)
recyclerView
.
layoutManager
=
LinearLayoutManager
(
context
,
LinearLayoutManager
.
VERTICAL
,
false
)
}
...
...
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