File tree Expand file tree Collapse file tree
library/src/main/java/com/owncloud/android/lib/resources/activities Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments