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
274e47f9
Commit
274e47f9
authored
Oct 02, 2017
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nullity checks
parent
8d985b42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
27 deletions
+33
-27
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+33
-27
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
274e47f9
...
...
@@ -340,6 +340,7 @@ public class RoomFragment extends AbstractChatRoomFragment implements
SlidingPaneLayout
subPane
=
getActivity
().
findViewById
(
R
.
id
.
sub_sliding_pane
);
sidebarFragment
=
(
SidebarMainFragment
)
getActivity
().
getSupportFragmentManager
().
findFragmentById
(
R
.
id
.
sidebar_fragment_container
);
if
(
pane
!=
null
)
{
pane
.
setPanelSlideListener
(
new
SlidingPaneLayout
.
PanelSlideListener
()
{
@Override
public
void
onPanelSlide
(
View
view
,
float
v
)
{
...
...
@@ -363,6 +364,7 @@ public class RoomFragment extends AbstractChatRoomFragment implements
}
});
}
}
public
void
closeUserActionContainer
()
{
sidebarFragment
.
closeUserActionContainer
();
...
...
@@ -657,6 +659,9 @@ public class RoomFragment extends AbstractChatRoomFragment implements
}
private
void
showRoomListFragment
(
int
actionId
)
{
//TODO: oddly sometimes getActivity() yields null. Investigate the situations this might happen
//and fix it, removing this null-check
if
(
getActivity
()
!=
null
)
{
Intent
intent
=
new
Intent
(
getActivity
(),
RoomActivity
.
class
).
putExtra
(
"actionId"
,
actionId
)
.
putExtra
(
"roomId"
,
roomId
)
.
putExtra
(
"roomType"
,
roomType
)
...
...
@@ -665,4 +670,5 @@ public class RoomFragment extends AbstractChatRoomFragment implements
.
putExtra
(
"userId"
,
userId
);
startActivity
(
intent
);
}
}
}
\ 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