Skip to content

Commit 72bd465

Browse files
docs(links): Add javadoc and remove unused method
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 3ba5c2a commit 72bd465

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/java/it/niedermann/owncloud/notes/util/LinkHelper.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ import androidx.core.net.toUri
1515
import com.owncloud.android.lib.common.utils.Log_OC
1616
import java.util.Locale
1717

18+
/**
19+
* Helper class for opening Nextcloud apps if present
20+
* or falling back to opening the app store
21+
* in case the app is not yet installed on the device.
22+
*/
1823
object LinkHelper {
1924
const val APP_NEXTCLOUD_FILES = "com.nextcloud.client"
2025
const val APP_NEXTCLOUD_NOTES = "it.niedermann.owncloud.notes"
2126
const val APP_NEXTCLOUD_TALK = "com.nextcloud.talk2"
2227
const val KEY_ACCOUNT: String = "KEY_ACCOUNT"
2328
private const val TAG = "LinkHelper"
2429

25-
fun isHttpOrHttpsLink(link: String?): Boolean =
26-
link?.lowercase(Locale.getDefault())?.let {
27-
it.startsWith("http://") || it.startsWith("https://")
28-
} == true
29-
3030
/**
3131
* Open specified app and, if not installed redirect to corresponding download.
3232
*

0 commit comments

Comments
 (0)