mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Replaced CoreManager now that it has been removed
This commit is contained in:
parent
db02d87707
commit
823b88b93e
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ import android.app.Application.ActivityLifecycleCallbacks
|
|||
import android.os.Bundle
|
||||
import org.linphone.LinphoneApplication.Companion.coreContext
|
||||
import org.linphone.core.tools.service.AndroidDispatcher
|
||||
import org.linphone.core.tools.service.CoreManager
|
||||
import org.linphone.core.tools.AndroidPlatformHelper
|
||||
|
||||
class ActivityMonitor : ActivityLifecycleCallbacks {
|
||||
private val activities = ArrayList<Activity>()
|
||||
|
|
@ -106,8 +106,8 @@ class ActivityMonitor : ActivityLifecycleCallbacks {
|
|||
}
|
||||
|
||||
override fun run() {
|
||||
if (CoreManager.isReady()) {
|
||||
synchronized(CoreManager.instance()) {
|
||||
if (AndroidPlatformHelper.isReady()) {
|
||||
synchronized(AndroidPlatformHelper.instance()) {
|
||||
if (!isCanceled) {
|
||||
if (mRunningActivities == 0 && mActive) {
|
||||
mActive = false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue