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
73dbba85
Commit
73dbba85
authored
Sep 01, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomFragment.java
parent
0103fdb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+4
-3
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
73dbba85
...
@@ -2,6 +2,7 @@ package chat.rocket.android.fragment.chatroom;
...
@@ -2,6 +2,7 @@ package chat.rocket.android.fragment.chatroom;
import
android.Manifest
;
import
android.Manifest
;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -327,7 +328,7 @@ public class RoomFragment extends AbstractChatRoomFragment implements
...
@@ -327,7 +328,7 @@ public class RoomFragment extends AbstractChatRoomFragment implements
}
}
private
boolean
closeSideMenuIfNeeded
()
{
private
boolean
closeSideMenuIfNeeded
()
{
DrawerLayout
drawerLayout
=
(
DrawerLayout
)
rootView
.
findViewById
(
R
.
id
.
drawer_layout
);
DrawerLayout
drawerLayout
=
rootView
.
findViewById
(
R
.
id
.
drawer_layout
);
if
(
drawerLayout
!=
null
&&
drawerLayout
.
isDrawerOpen
(
GravityCompat
.
END
))
{
if
(
drawerLayout
!=
null
&&
drawerLayout
.
isDrawerOpen
(
GravityCompat
.
END
))
{
drawerLayout
.
closeDrawer
(
GravityCompat
.
END
);
drawerLayout
.
closeDrawer
(
GravityCompat
.
END
);
return
true
;
return
true
;
...
@@ -336,12 +337,12 @@ public class RoomFragment extends AbstractChatRoomFragment implements
...
@@ -336,12 +337,12 @@ public class RoomFragment extends AbstractChatRoomFragment implements
}
}
private
void
setupMessageComposer
()
{
private
void
setupMessageComposer
()
{
final
MessageFormLayout
messageFormLayout
=
(
MessageFormLayout
)
rootView
.
findViewById
(
R
.
id
.
messageComposer
);
final
MessageFormLayout
messageFormLayout
=
rootView
.
findViewById
(
R
.
id
.
messageComposer
);
messageFormManager
=
new
MessageFormManager
(
messageFormLayout
,
this
::
showExtraActionSelectionDialog
);
messageFormManager
=
new
MessageFormManager
(
messageFormLayout
,
this
::
showExtraActionSelectionDialog
);
messageFormManager
.
setSendMessageCallback
(
this
::
sendMessage
);
messageFormManager
.
setSendMessageCallback
(
this
::
sendMessage
);
messageFormLayout
.
setEditTextCommitContentListener
(
this
::
onCommitContent
);
messageFormLayout
.
setEditTextCommitContentListener
(
this
::
onCommitContent
);
autocompleteManager
=
new
AutocompleteManager
(
(
ViewGroup
)
rootView
.
findViewById
(
R
.
id
.
messageListRelativeLayout
));
autocompleteManager
=
new
AutocompleteManager
(
rootView
.
findViewById
(
R
.
id
.
messageListRelativeLayout
));
autocompleteManager
.
registerSource
(
autocompleteManager
.
registerSource
(
new
ChannelSource
(
new
ChannelSource
(
...
...
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