Skip to content

Commit bd4e5e9

Browse files
committed
Reroute links to app browser
1 parent a398880 commit bd4e5e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

thepeer-android/src/main/java/co/thepeer/sdk/ui/activity/ThepeerSDKActivity.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ class ThepeerSDKActivity : AppCompatActivity() {
8181
}
8282
}
8383

84+
override fun shouldOverrideUrlLoading(
85+
view: WebView?,
86+
request: WebResourceRequest?
87+
): Boolean {
88+
startActivity(Intent(Intent.ACTION_VIEW, request?.url))
89+
return true
90+
}
91+
8492
}
8593

8694

0 commit comments

Comments
 (0)