Commit e9ceb7f9 authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix code style

parent 562c7e0e
......@@ -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);
......
......@@ -21,7 +21,7 @@ public class RoomListManager {
void onItemClick(RoomListItemView roomListItemView);
}
private OnItemClickListener mListener;
private OnItemClickListener listener;
/**
* constructor with two ViewGroups.
......@@ -57,7 +57,7 @@ public class RoomListManager {
* set callback on List item clicked.
*/
public void setOnItemClickListener(OnItemClickListener listener) {
mListener = listener;
this.listener = 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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment