From 27fe03caa4d8443bebf8167ac11f1dcb9ff62b25 Mon Sep 17 00:00:00 2001 From: davigonz Date: Thu, 30 May 2019 14:05:43 +0200 Subject: [PATCH] Apply additional changes requested in CR --- .../owncloud/android/ui/adapter/SharePublicLinkListAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/adapter/SharePublicLinkListAdapter.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/adapter/SharePublicLinkListAdapter.kt index 56bdbad77a8..535a2d5cd57 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/adapter/SharePublicLinkListAdapter.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/adapter/SharePublicLinkListAdapter.kt @@ -61,7 +61,7 @@ class SharePublicLinkListAdapter( val share = mPublicLinks[position] // If there's no name, set the token as name - view.publicLinkName.text = if (share.name?.isEmpty() == true) share.token else share.name + view.publicLinkName.text = if (share.name.isNullOrEmpty()) share.token else share.name // bind listener to get link view.getPublicLinkButton.setOnClickListener { mListener.copyOrSendPublicLink(mPublicLinks[position]) }