mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Revert part of previous changes, causes issues
This commit is contained in:
parent
625edfe33a
commit
f91252f678
2 changed files with 0 additions and 17 deletions
|
|
@ -341,14 +341,6 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
|
|||
}
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun onAppDestroyed() {
|
||||
postOnCoreThread {
|
||||
Log.w("$TAG App has been destroyed, stopping Core")
|
||||
destroyCore()
|
||||
}
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
fun isAddressMyself(address: Address): Boolean {
|
||||
val found = core.accountList.find {
|
||||
|
|
|
|||
|
|
@ -77,10 +77,6 @@ class ActivityMonitor : ActivityLifecycleCallbacks {
|
|||
override fun onActivityDestroyed(activity: Activity) {
|
||||
Log.d("$TAG onActivityDestroyed [$activity]")
|
||||
activities.remove(activity)
|
||||
|
||||
if (activities.isEmpty()) {
|
||||
onAppDestroyed()
|
||||
}
|
||||
}
|
||||
|
||||
private fun startInactivityChecker() {
|
||||
|
|
@ -106,11 +102,6 @@ class ActivityMonitor : ActivityLifecycleCallbacks {
|
|||
}
|
||||
}
|
||||
|
||||
private fun onAppDestroyed() {
|
||||
Log.w("$TAG onAppDestroyed()")
|
||||
coreContext.onAppDestroyed()
|
||||
}
|
||||
|
||||
private fun onBackgroundMode() {
|
||||
Log.i("$TAG onBackgroundMode()")
|
||||
coreContext.onBackground()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue