Added support for handling URIs with linphone: scheme
This commit is contained in:
parent
0937308a33
commit
bb5b098007
2 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,7 @@
|
||||||
<data android:scheme="tel" />
|
<data android:scheme="tel" />
|
||||||
<data android:scheme="sip" />
|
<data android:scheme="sip" />
|
||||||
<data android:scheme="sips" />
|
<data android:scheme="sips" />
|
||||||
|
<data android:scheme="linphone" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
@ -252,6 +252,9 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
|
||||||
if (addressToCall.startsWith("tel:")) {
|
if (addressToCall.startsWith("tel:")) {
|
||||||
Log.i("[Main Activity] Removing tel: prefix")
|
Log.i("[Main Activity] Removing tel: prefix")
|
||||||
addressToCall = addressToCall.substring("tel:".length)
|
addressToCall = addressToCall.substring("tel:".length)
|
||||||
|
} else if (addressToCall.startsWith("linphone:")) {
|
||||||
|
Log.i("[Main Activity] Removing linphone: prefix")
|
||||||
|
addressToCall = addressToCall.substring("linphone:".length)
|
||||||
}
|
}
|
||||||
|
|
||||||
val address = coreContext.core.interpretUrl(addressToCall)
|
val address = coreContext.core.interpretUrl(addressToCall)
|
||||||
|
|
Loading…
Reference in a new issue