1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +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

View File

@ -226,8 +226,8 @@ public class OCShare implements Parcelable, Serializable {
if (mName.length() > 0) {
return mName;
}
if (mPath.length() > 0) {
return (new File(mPath)).getName();
if (mToken.length() > 0) {
return mToken;
}
return "";
}