Avoid crash in IncallService bind
This commit is contained in:
@@ -1,14 +1,16 @@
|
|||||||
package com.tutpro.baresip
|
package com.tutpro.baresip
|
||||||
|
|
||||||
import android.app.Service
|
import android.app.Service
|
||||||
|
import android.content.ContentValues.TAG
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
|
|
||||||
// This is needed in order to allow choosing baresip as default Phone app
|
// This is needed in order to allow choosing baresip as default Phone app
|
||||||
|
|
||||||
class InCallService : Service() {
|
class InCallService : Service() {
|
||||||
|
override fun onBind(intent: Intent): IBinder? {
|
||||||
override fun onBind(intent: Intent): IBinder {
|
// TODO("Return the communication channel to the service.")
|
||||||
TODO("Return the communication channel to the service.")
|
Log.d(TAG, "InCallService onBind with intent: ${intent.action}")
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user