Added BaresipApp to avoid baresip service starting before baresip library is loaded
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.tutpro.baresip
|
||||
|
||||
import android.app.Application
|
||||
|
||||
class BaresipApp : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (!BaresipService.libraryLoaded) {
|
||||
Log.i(TAG, "Loading baresip library")
|
||||
System.loadLibrary("baresip")
|
||||
BaresipService.libraryLoaded = true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user