1
0
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:
davigonz 2017-05-09 18:18:22 +02:00
parent beb9be05de
commit a034338290

View File

@ -168,9 +168,10 @@ public class UpdateRemoteShareOperation extends RemoteOperation {
/// prepare array of parameters to update /// prepare array of parameters to update
List<Pair<String, String>> parametersToUpdate = new ArrayList<>(); List<Pair<String, String>> parametersToUpdate = new ArrayList<>();
if (mName != null) { if (mName.length() > 0) {
parametersToUpdate.add(new Pair<>(PARAM_NAME, mName)); parametersToUpdate.add(new Pair<>(PARAM_NAME, mName));
} }
if (mPassword != null) { if (mPassword != null) {
parametersToUpdate.add(new Pair<>(PARAM_PASSWORD, mPassword)); parametersToUpdate.add(new Pair<>(PARAM_PASSWORD, mPassword));
} }
@ -254,5 +255,4 @@ public class UpdateRemoteShareOperation extends RemoteOperation {
} }
return result; return result;
} }
} }