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
e9ceb7f9
Commit
e9ceb7f9
authored
Nov 11, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code style
parent
562c7e0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+4
-0
RoomListManager.java
...rocket/android/layouthelper/chatroom/RoomListManager.java
+4
-6
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
e9ceb7f9
...
...
@@ -9,11 +9,15 @@ import io.realm.RealmQuery;
import
jp.co.crowdworks.realm_java_helpers.RealmObjectObserver
;
/**
* Chat room screen.
*/
public
class
RoomFragment
extends
AbstractChatRoomFragment
{
private
String
roomId
;
/**
* create fragment with roomId.
*/
public
static
RoomFragment
create
(
String
roomId
)
{
Bundle
args
=
new
Bundle
();
args
.
putString
(
"roomId"
,
roomId
);
...
...
app/src/main/java/chat/rocket/android/layouthelper/chatroom/RoomListManager.java
View file @
e9ceb7f9
...
...
@@ -21,7 +21,7 @@ public class RoomListManager {
void
onItemClick
(
RoomListItemView
roomListItemView
);
}
private
OnItemClickListener
mL
istener
;
private
OnItemClickListener
l
istener
;
/**
* constructor with two ViewGroups.
...
...
@@ -57,7 +57,7 @@ public class RoomListManager {
* set callback on List item clicked.
*/
public
void
setOnItemClickListener
(
OnItemClickListener
listener
)
{
mL
istener
=
listener
;
this
.
l
istener
=
listener
;
}
private
void
insertOrUpdateItem
(
ViewGroup
parent
,
Room
room
)
{
...
...
@@ -96,10 +96,8 @@ public class RoomListManager {
}
private
void
onItemClick
(
View
view
)
{
if
(
view
instanceof
RoomListItemView
)
{
if
(
mListener
!=
null
)
{
mListener
.
onItemClick
((
RoomListItemView
)
view
);
}
if
(
view
instanceof
RoomListItemView
&&
listener
!=
null
)
{
listener
.
onItemClick
((
RoomListItemView
)
view
);
}
}
...
...
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