Skip to content

Commit 86363c1

Browse files
committed
use long for lastGiven
Signed-off-by: alperozturk <[email protected]>
1 parent 2c72914 commit 86363c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/main/java/com/owncloud/android/lib/resources/activities/GetActivitiesRemoteOperation.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class GetActivitiesRemoteOperation extends RemoteOperation {
5454

5555
private static final String NODE_DATA = "data";
5656

57-
private int lastGiven = -1;
57+
private long lastGiven = -1;
5858

5959
private long fileId = -1;
6060

@@ -65,7 +65,7 @@ public GetActivitiesRemoteOperation(long fileId) {
6565
this.fileId = fileId;
6666
}
6767

68-
public GetActivitiesRemoteOperation(long fileId, int lastGiven) {
68+
public GetActivitiesRemoteOperation(long fileId, long lastGiven) {
6969
this.fileId = fileId;
7070
this.lastGiven = lastGiven;
7171
}
@@ -114,7 +114,7 @@ public RemoteOperationResult run(NextcloudClient client) {
114114
if (isSuccess(status)) {
115115
String nextPageHeader = get.getResponseHeader("X-Activity-Last-Given");
116116
if (nextPageHeader != null) {
117-
lastGiven = Integer.parseInt(nextPageHeader);
117+
lastGiven = Long.parseLong(nextPageHeader);
118118
} else {
119119
lastGiven = -1;
120120
}
@@ -185,7 +185,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
185185

186186
Header nextPageHeader = get.getResponseHeader("X-Activity-Last-Given");
187187
if (nextPageHeader != null) {
188-
lastGiven = Integer.parseInt(nextPageHeader.getValue());
188+
lastGiven = Long.parseLong(nextPageHeader.getValue());
189189
} else {
190190
lastGiven = -1;
191191
}

0 commit comments

Comments
 (0)