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
c1110705
Commit
c1110705
authored
Sep 15, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomDialogFragment.kt
parent
7ebf655c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
RoomDialogFragment.kt
...et/android/fragment/chatroom/dialog/RoomDialogFragment.kt
+10
-2
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/dialog/RoomDialogFragment.kt
View file @
c1110705
...
@@ -12,6 +12,8 @@ import android.widget.TextView
...
@@ -12,6 +12,8 @@ import android.widget.TextView
import
chat.rocket.android.R
import
chat.rocket.android.R
import
chat.rocket.android.layouthelper.chatroom.dialog.RoomFileListAdapter
import
chat.rocket.android.layouthelper.chatroom.dialog.RoomFileListAdapter
import
chat.rocket.android.layouthelper.chatroom.dialog.RoomMemberListAdapter
import
chat.rocket.android.layouthelper.chatroom.dialog.RoomMemberListAdapter
import
chat.rocket.android.layouthelper.chatroom.dialog.RoomPinnedMessagesAdapter
import
chat.rocket.core.models.Message
/**
/**
* Displays a dialog containing pinned messages, favorite messages, file list or member list of a room.
* Displays a dialog containing pinned messages, favorite messages, file list or member list of a room.
...
@@ -84,8 +86,14 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
...
@@ -84,8 +86,14 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
actionId
)
actionId
)
}
}
override
fun
showPinnedMessages
()
{
override
fun
showPinnedMessages
(
dataSet
:
ArrayList
<
Message
>)
{
// TODO("not implemented")
if
(
dataSet
.
isEmpty
())
{
// TODO("move to strings.xml")
showMessage
(
"None pinned message to show"
)
}
else
{
recyclerView
.
adapter
=
RoomPinnedMessagesAdapter
(
dataSet
,
hostname
)
recyclerView
.
layoutManager
=
LinearLayoutManager
(
context
,
LinearLayoutManager
.
VERTICAL
,
true
)
}
}
}
override
fun
showFavoriteMessages
()
{
override
fun
showFavoriteMessages
()
{
...
...
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