mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 14:53:57 +00:00
fix: don't open links in webview
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user