Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ public ListTaskPushNotificationConfigResult getInfo(ListTaskPushNotificationConf
if (configs.size() <= params.pageSize()) {
return new ListTaskPushNotificationConfigResult(convertPushNotificationConfig(configs, params), null);
}
String newToken = configs.get(params.pageSize()).token();
String newToken = configs.get(params.pageSize()).id();
return new ListTaskPushNotificationConfigResult(convertPushNotificationConfig(configs.subList(0, params.pageSize()), params), newToken);
}

private int findFirstIndex(List<PushNotificationConfig> configs, String token) {
private int findFirstIndex(List<PushNotificationConfig> configs, String id) {
//find first index
Iterator<PushNotificationConfig> iter = configs.iterator();
int index = 0;
while (iter.hasNext()) {
if (token.equals(iter.next().token())) {
if (id.equals(iter.next().id())) {
return index;
}
index++;
Expand Down