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
0040eb30
Commit
0040eb30
authored
Apr 12, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small "clean up"
parent
127f5fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+11
-18
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
0040eb30
...
@@ -69,7 +69,6 @@ import chat.rocket.core.interactors.MessageInteractor;
...
@@ -69,7 +69,6 @@ import chat.rocket.core.interactors.MessageInteractor;
import
chat.rocket.core.interactors.SessionInteractor
;
import
chat.rocket.core.interactors.SessionInteractor
;
import
chat.rocket.core.models.Message
;
import
chat.rocket.core.models.Message
;
import
chat.rocket.core.models.Room
;
import
chat.rocket.core.models.Room
;
import
chat.rocket.core.repositories.UserRepository
;
import
chat.rocket.persistence.realm.repositories.RealmMessageRepository
;
import
chat.rocket.persistence.realm.repositories.RealmMessageRepository
;
import
chat.rocket.persistence.realm.repositories.RealmRoomRepository
;
import
chat.rocket.persistence.realm.repositories.RealmRoomRepository
;
import
chat.rocket.persistence.realm.repositories.RealmServerInfoRepository
;
import
chat.rocket.persistence.realm.repositories.RealmServerInfoRepository
;
...
@@ -115,6 +114,9 @@ public class RoomFragment extends AbstractChatRoomFragment
...
@@ -115,6 +114,9 @@ public class RoomFragment extends AbstractChatRoomFragment
protected
RoomContract
.
Presenter
presenter
;
protected
RoomContract
.
Presenter
presenter
;
private
RealmRoomRepository
roomRepository
;
private
RealmRoomRepository
roomRepository
;
private
RealmUserRepository
userRepository
;
private
MethodCallHelper
methodCallHelper
;
private
AbsoluteUrlHelper
absoluteUrlHelper
;
public
RoomFragment
()
{
public
RoomFragment
()
{
}
}
...
@@ -148,22 +150,24 @@ public class RoomFragment extends AbstractChatRoomFragment
...
@@ -148,22 +150,24 @@ public class RoomFragment extends AbstractChatRoomFragment
roomRepository
roomRepository
);
);
RealmUserRepository
userRepository
=
new
RealmUserRepository
(
hostname
);
userRepository
=
new
RealmUserRepository
(
hostname
);
AbsoluteUrlHelper
absoluteUrlHelper
=
new
AbsoluteUrlHelper
(
absoluteUrlHelper
=
new
AbsoluteUrlHelper
(
hostname
,
hostname
,
new
RealmServerInfoRepository
(),
new
RealmServerInfoRepository
(),
userRepository
,
userRepository
,
new
SessionInteractor
(
new
RealmSessionRepository
(
hostname
))
new
SessionInteractor
(
new
RealmSessionRepository
(
hostname
))
);
);
methodCallHelper
=
new
MethodCallHelper
(
getContext
(),
hostname
);
presenter
=
new
RoomPresenter
(
presenter
=
new
RoomPresenter
(
roomId
,
roomId
,
userRepository
,
userRepository
,
messageInteractor
,
messageInteractor
,
roomRepository
,
roomRepository
,
absoluteUrlHelper
,
absoluteUrlHelper
,
new
MethodCallHelper
(
getContext
(),
hostname
)
,
methodCallHelper
,
ConnectivityManager
.
getInstance
(
getContext
())
ConnectivityManager
.
getInstance
(
getContext
())
);
);
...
@@ -302,8 +306,8 @@ public class RoomFragment extends AbstractChatRoomFragment
...
@@ -302,8 +306,8 @@ public class RoomFragment extends AbstractChatRoomFragment
}
}
},
},
Logger:
:
report
Logger:
:
report
)
;
)
)
)
;
}
}
}
}
...
@@ -327,12 +331,10 @@ public class RoomFragment extends AbstractChatRoomFragment
...
@@ -327,12 +331,10 @@ public class RoomFragment extends AbstractChatRoomFragment
autocompleteManager
=
autocompleteManager
=
new
AutocompleteManager
((
ViewGroup
)
rootView
.
findViewById
(
R
.
id
.
message_list_root
));
new
AutocompleteManager
((
ViewGroup
)
rootView
.
findViewById
(
R
.
id
.
message_list_root
));
final
MethodCallHelper
methodCallHelper
=
new
MethodCallHelper
(
getContext
(),
hostname
);
autocompleteManager
.
registerSource
(
autocompleteManager
.
registerSource
(
new
ChannelSource
(
new
ChannelSource
(
new
AutocompleteChannelInteractor
(
new
AutocompleteChannelInteractor
(
new
RealmRoomRepository
(
hostname
)
,
roomRepository
,
new
RealmSpotlightRoomRepository
(
hostname
),
new
RealmSpotlightRoomRepository
(
hostname
),
new
DeafultTempSpotlightRoomCaller
(
methodCallHelper
)
new
DeafultTempSpotlightRoomCaller
(
methodCallHelper
)
),
),
...
@@ -341,15 +343,6 @@ public class RoomFragment extends AbstractChatRoomFragment
...
@@ -341,15 +343,6 @@ public class RoomFragment extends AbstractChatRoomFragment
)
)
);
);
final
UserRepository
userRepository
=
new
RealmUserRepository
(
hostname
);
final
AbsoluteUrlHelper
absoluteUrlHelper
=
new
AbsoluteUrlHelper
(
hostname
,
new
RealmServerInfoRepository
(),
userRepository
,
new
SessionInteractor
(
new
RealmSessionRepository
(
hostname
))
);
Disposable
disposable
=
Single
.
zip
(
Disposable
disposable
=
Single
.
zip
(
absoluteUrlHelper
.
getRocketChatAbsoluteUrl
(),
absoluteUrlHelper
.
getRocketChatAbsoluteUrl
(),
roomRepository
.
getById
(
roomId
).
first
(
Optional
.
absent
()),
roomRepository
.
getById
(
roomId
).
first
(
Optional
.
absent
()),
...
...
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