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
6444696a
Commit
6444696a
authored
Jan 09, 2017
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove deprecated method call
parent
c020b195
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
MethodCallHelper.java
...c/main/java/chat/rocket/android/api/MethodCallHelper.java
+0
-7
PushHelper.java
app/src/main/java/chat/rocket/android/api/PushHelper.java
+0
-4
GcmRegistrationIntentService.java
...rocket/android/push/gcm/GcmRegistrationIntentService.java
+4
-4
No files found.
app/src/main/java/chat/rocket/android/api/MethodCallHelper.java
View file @
6444696a
...
...
@@ -38,13 +38,6 @@ public class MethodCallHelper {
protected
final
RealmHelper
realmHelper
;
protected
final
DDPClientWrapper
ddpClient
;
/**
* initialize with ServerConfigId.
*/
public
MethodCallHelper
(
String
serverConfigId
)
{
this
(
null
,
serverConfigId
);
}
/**
* initialize with Context and ServerConfigId.
*/
...
...
app/src/main/java/chat/rocket/android/api/PushHelper.java
View file @
6444696a
...
...
@@ -12,10 +12,6 @@ import bolts.Task;
import
chat.rocket.android.realm_helper.RealmHelper
;
public
class
PushHelper
extends
MethodCallHelper
{
public
PushHelper
(
String
serverConfigId
)
{
super
(
serverConfigId
);
}
public
PushHelper
(
Context
context
,
String
serverConfigId
)
{
super
(
context
,
serverConfigId
);
}
...
...
app/src/main/java/chat/rocket/android/push/gcm/GcmRegistrationIntentService.java
View file @
6444696a
package
chat
.
rocket
.
android
.
push
.
gcm
;
import
android.app.IntentService
;
import
android.content.Intent
;
import
com.google.android.gms.gcm.GoogleCloudMessaging
;
import
com.google.android.gms.iid.InstanceID
;
import
android.app.IntentService
;
import
android.content.Intent
;
import
java.io.IOException
;
import
java.util.List
;
import
chat.rocket.android.RocketChatCache
;
...
...
@@ -59,7 +59,7 @@ public class GcmRegistrationIntentService extends IntentService {
final
User
currentUser
=
realmHelper
.
executeTransactionForRead
(
realm
->
User
.
queryCurrentUser
(
realm
).
findFirst
());
new
PushHelper
(
serverConfig
.
getServerConfigId
()).
pushUpdate
(
new
PushHelper
(
getBaseContext
(),
serverConfig
.
getServerConfigId
()).
pushUpdate
(
RocketChatCache
.
getPushId
(
this
),
token
,
currentUser
!=
null
?
currentUser
.
getId
()
:
null
)
.
onSuccess
(
task
->
{
markRefreshAsDone
(
serverConfig
);
...
...
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