We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a221bb2 + ebef656 commit 0e71f10Copy full SHA for 0e71f10
Parse/src/main/java/com/parse/GcmRegistrar.java
@@ -105,17 +105,13 @@ public Task<Void> then(Task<Boolean> task) throws Exception {
105
if (!task.getResult()) {
106
return Task.forResult(null);
107
}
108
- Task<Void> saveTask;
109
if (installation.getPushType() != PushType.GCM) {
110
installation.setPushType(PushType.GCM);
111
- saveTask = installation.saveInBackground();
112
- } else {
113
- saveTask = Task.forResult(null);
114
115
// We do not need to wait sendRegistrationRequestAsync, since this task will finish
116
// after we get the response from GCM, if we wait for this task, it will block our test.
117
sendRegistrationRequestAsync();
118
- return saveTask;
+ return Task.forResult(null);
119
120
});
121
0 commit comments