fix: don't open links in webview
This commit is contained in:
parent
c240664fda
commit
39d6f0fbd6
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@ import android.view.LayoutInflater
|
|||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.animation.LayoutAnimationController
|
||||
import android.webkit.WebResourceRequest
|
||||
import android.webkit.WebView
|
||||
import android.webkit.WebViewClient
|
||||
import androidx.core.content.ContextCompat
|
||||
|
@ -91,6 +92,13 @@ class ProfileFragment : Fragment() {
|
|||
)
|
||||
)
|
||||
}
|
||||
|
||||
override fun shouldOverrideUrlLoading(
|
||||
view: WebView?,
|
||||
request: WebResourceRequest?
|
||||
): Boolean {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
binding.userInfoContainer.visibility =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue