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
c24ebc5d
Commit
c24ebc5d
authored
Sep 17, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomFragment.java
parent
7cfd024b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+20
-22
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
c24ebc5d
...
...
@@ -11,7 +11,6 @@ import android.support.design.widget.Snackbar;
import
android.support.v13.view.inputmethod.InputConnectionCompat
;
import
android.support.v13.view.inputmethod.InputContentInfoCompat
;
import
android.support.v4.app.DialogFragment
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentTransaction
;
import
android.support.v4.os.BuildCompat
;
import
android.support.v4.util.Pair
;
...
...
@@ -28,10 +27,11 @@ import java.util.List;
import
chat.rocket.android.BackgroundLooper
;
import
chat.rocket.android.R
;
import
chat.rocket.android.activity.MainActivity
;
import
chat.rocket.android.api.MethodCallHelper
;
import
chat.rocket.android.fragment.chatroom.dialog.FileUploadProgressDialogFragment
;
import
chat.rocket.android.fragment.chatroom.dialog.MessageOptionsDialogFragment
;
import
chat.rocket.android.fragment.chatroom.
dialog.RoomDialog
Fragment
;
import
chat.rocket.android.fragment.chatroom.
list.RoomList
Fragment
;
import
chat.rocket.android.fragment.sidebar.SidebarMainFragment
;
import
chat.rocket.android.helper.AbsoluteUrlHelper
;
import
chat.rocket.android.helper.FileUploadHelper
;
...
...
@@ -319,16 +319,16 @@ public class RoomFragment extends AbstractChatRoomFragment implements
toolbar
.
setOnMenuItemClickListener
(
menuItem
->
{
switch
(
menuItem
.
getItemId
())
{
case
R
.
id
.
action_pinned_messages
:
showRoom
Dialog
Fragment
(
R
.
id
.
action_pinned_messages
);
showRoom
List
Fragment
(
R
.
id
.
action_pinned_messages
);
break
;
case
R
.
id
.
action_favorite_messages
:
showRoom
Dialog
Fragment
(
R
.
id
.
action_favorite_messages
);
showRoom
List
Fragment
(
R
.
id
.
action_favorite_messages
);
break
;
case
R
.
id
.
action_file_list
:
showRoom
Dialog
Fragment
(
R
.
id
.
action_file_list
);
showRoom
List
Fragment
(
R
.
id
.
action_file_list
);
break
;
case
R
.
id
.
action_member_list
:
showRoom
Dialog
Fragment
(
R
.
id
.
action_member_list
);
showRoom
List
Fragment
(
R
.
id
.
action_member_list
);
break
;
default
:
return
super
.
onOptionsItemSelected
(
menuItem
);
...
...
@@ -490,7 +490,7 @@ public class RoomFragment extends AbstractChatRoomFragment implements
edittingMessage
=
null
;
messageFormManager
.
clearComposingText
();
}
return
tru
e
;
return
fals
e
;
}
@Override
...
...
@@ -647,20 +647,18 @@ public class RoomFragment extends AbstractChatRoomFragment implements
messageFormManager
.
setEditMessage
(
message
.
getMessage
());
}
private
void
showRoomDialogFragment
(
int
actionId
)
{
FragmentTransaction
fragmentTransaction
=
getFragmentManager
().
beginTransaction
();
Fragment
prev
=
getFragmentManager
().
findFragmentByTag
(
"roomDialogFragment"
);
if
(
prev
!=
null
)
{
fragmentTransaction
.
remove
(
prev
);
}
fragmentTransaction
.
addToBackStack
(
null
);
DialogFragment
roomDialogFragment
=
RoomDialogFragment
.
Companion
.
newInstance
(
roomId
,
roomType
,
hostname
,
token
,
userId
,
actionId
);
roomDialogFragment
.
show
(
fragmentTransaction
,
"roomDialogFragment"
);
private
void
showRoomListFragment
(
int
actionId
)
{
RoomListFragment
roomListFragment
=
RoomListFragment
.
Companion
.
newInstance
(
actionId
,
roomId
,
roomType
,
hostname
,
token
,
userId
);
MainActivity
activity
=
((
MainActivity
)
getActivity
());
FragmentTransaction
ft
=
activity
.
getSupportFragmentManager
().
beginTransaction
();
ft
.
replace
(
activity
.
getLayoutContainerForFragment
(),
roomListFragment
,
"roomListFragment"
);
ft
.
addToBackStack
(
null
);
ft
.
commit
();
}
}
\ 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