1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-22 05:43:02 +00:00

Use the token instead of the path when a public link has been created with no name

This commit is contained in:
davigonz
2017-05-02 18:51:31 +02:00
committed by David A. Velasco
parent ee726119cb
commit 8f3aeb30ed
@@ -226,8 +226,8 @@ public class OCShare implements Parcelable, Serializable {
if (mName.length() > 0) { if (mName.length() > 0) {
return mName; return mName;
} }
if (mPath.length() > 0) { if (mToken.length() > 0) {
return (new File(mPath)).getName(); return mToken;
} }
return ""; return "";
} }