From 8f3aeb30ed7c08186f5790b6c9310f86ca6070e7 Mon Sep 17 00:00:00 2001 From: davigonz Date: Tue, 2 May 2017 18:51:31 +0200 Subject: [PATCH] Use the token instead of the path when a public link has been created with no name --- src/com/owncloud/android/lib/resources/shares/OCShare.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/owncloud/android/lib/resources/shares/OCShare.java b/src/com/owncloud/android/lib/resources/shares/OCShare.java index 1ce63504..e3763b36 100644 --- a/src/com/owncloud/android/lib/resources/shares/OCShare.java +++ b/src/com/owncloud/android/lib/resources/shares/OCShare.java @@ -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 ""; }