1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Change FormField value(s) type from String to CharSequence

This commit is contained in:
Florian Schmaus 2018-04-06 13:24:54 +02:00
parent 9b5dafe541
commit 1d88c857b5
12 changed files with 79 additions and 44 deletions

View file

@ -157,13 +157,13 @@ public final class HttpFileUploadManager extends Manager {
return new UploadService(address, version);
}
List<String> values = field.getValues();
if (values.isEmpty()) {
String maxFileSizeValue = field.getFirstValue();
if (maxFileSizeValue == null) {
return new UploadService(address, version);
}
Long maxFileSize = Long.valueOf(values.get(0));
Long maxFileSize = Long.valueOf(maxFileSizeValue);
return new UploadService(address, version, maxFileSize);
}