1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00

Get public share name instead of token when using public share getName method and there's no name

This commit is contained in:
davigonz 2017-05-03 09:09:27 +02:00 committed by David A. Velasco
parent 8f3aeb30ed
commit e80b50d4de

View File

@ -223,14 +223,8 @@ public class OCShare implements Parcelable, Serializable {
} }
public String getName() { public String getName() {
if (mName.length() > 0) {
return mName; return mName;
} }
if (mToken.length() > 0) {
return mToken;
}
return "";
}
public void setName(String name) { public void setName(String name) {
mName = (name != null) ? name : ""; mName = (name != null) ? name : "";