File tree 1 file changed +4
-4
lines changed
library/src/main/java/com/owncloud/android/lib/resources/activities
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class GetActivitiesRemoteOperation extends RemoteOperation {
54
54
55
55
private static final String NODE_DATA = "data" ;
56
56
57
- private int lastGiven = -1 ;
57
+ private long lastGiven = -1 ;
58
58
59
59
private long fileId = -1 ;
60
60
@@ -65,7 +65,7 @@ public GetActivitiesRemoteOperation(long fileId) {
65
65
this .fileId = fileId ;
66
66
}
67
67
68
- public GetActivitiesRemoteOperation (long fileId , int lastGiven ) {
68
+ public GetActivitiesRemoteOperation (long fileId , long lastGiven ) {
69
69
this .fileId = fileId ;
70
70
this .lastGiven = lastGiven ;
71
71
}
@@ -114,7 +114,7 @@ public RemoteOperationResult run(NextcloudClient client) {
114
114
if (isSuccess (status )) {
115
115
String nextPageHeader = get .getResponseHeader ("X-Activity-Last-Given" );
116
116
if (nextPageHeader != null ) {
117
- lastGiven = Integer . parseInt (nextPageHeader );
117
+ lastGiven = Long . parseLong (nextPageHeader );
118
118
} else {
119
119
lastGiven = -1 ;
120
120
}
@@ -185,7 +185,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
185
185
186
186
Header nextPageHeader = get .getResponseHeader ("X-Activity-Last-Given" );
187
187
if (nextPageHeader != null ) {
188
- lastGiven = Integer . parseInt (nextPageHeader .getValue ());
188
+ lastGiven = Long . parseLong (nextPageHeader .getValue ());
189
189
} else {
190
190
lastGiven = -1 ;
191
191
}
You can’t perform that action at this time.
0 commit comments