mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix wrong or no update parameter given in servers < 10
This commit is contained in:
parent
beb9be05de
commit
a034338290
@ -168,9 +168,10 @@ public class UpdateRemoteShareOperation extends RemoteOperation {
|
||||
|
||||
/// prepare array of parameters to update
|
||||
List<Pair<String, String>> parametersToUpdate = new ArrayList<>();
|
||||
if (mName != null) {
|
||||
if (mName.length() > 0) {
|
||||
parametersToUpdate.add(new Pair<>(PARAM_NAME, mName));
|
||||
}
|
||||
|
||||
if (mPassword != null) {
|
||||
parametersToUpdate.add(new Pair<>(PARAM_PASSWORD, mPassword));
|
||||
}
|
||||
@ -254,5 +255,4 @@ public class UpdateRemoteShareOperation extends RemoteOperation {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user