File tree Expand file tree Collapse file tree
app/src/main/java/com/nextcloud/talk/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88package com.nextcloud.talk.utils
99
10- import android.annotation.SuppressLint
1110import android.content.Context
1211import android.content.Intent
1312import android.text.method.ScrollingMovementMethod
@@ -37,15 +36,11 @@ object MarkwonUtils {
3736
3837 override fun configureConfiguration (builder : MarkwonConfiguration .Builder ) {
3938 builder.linkResolver(object : LinkResolverDef () {
40- @SuppressLint(" SuspiciousIndentation" )
4139 override fun resolve (view : View , link : String ) {
4240 var linkToOpen = link
4341 if (! (linkToOpen.contains(" http://" ) || linkToOpen.contains(" https://" ))) {
4442 linkToOpen = " https://$link "
45- } else {
46- linkToOpen = link
4743 }
48-
4944 val browserIntent = Intent (
5045 Intent .ACTION_VIEW ,
5146 linkToOpen.toUri()
You can’t perform that action at this time.
0 commit comments