mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Added support for sip-linphone scheme
This commit is contained in:
parent
9fd4860a91
commit
82da25af89
2 changed files with 5 additions and 0 deletions
|
|
@ -96,6 +96,7 @@
|
|||
<data android:scheme="sip" />
|
||||
<data android:scheme="sips" />
|
||||
<data android:scheme="linphone" />
|
||||
<data android:scheme="sip-linphone" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
|
|
|
|||
|
|
@ -263,6 +263,9 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
|
|||
} else if (addressToCall.startsWith("linphone:")) {
|
||||
Log.i("[Main Activity] Removing linphone: prefix")
|
||||
addressToCall = addressToCall.substring("linphone:".length)
|
||||
} else if (addressToCall.startsWith("sip-linphone:")) {
|
||||
Log.i("[Main Activity] Removing linphone: sip-linphone")
|
||||
addressToCall = addressToCall.substring("sip-linphone:".length)
|
||||
}
|
||||
|
||||
val address = coreContext.core.interpretUrl(addressToCall)
|
||||
|
|
@ -348,6 +351,7 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
|
|||
try {
|
||||
addressToIM = URLDecoder.decode(stringUri, "UTF-8")
|
||||
} catch (e: UnsupportedEncodingException) {
|
||||
Log.e("[Main Activity] UnsupportedEncodingException: $e")
|
||||
}
|
||||
|
||||
when {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue