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:
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 "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user