Fixed not possible to going back to OutgoingCallActivity when call is in early-media state + fixed UI not showing numpad button when coming back
This commit is contained in:
parent
0488d70d0f
commit
7ff3d7abfe
4 changed files with 8 additions and 1 deletions
|
@ -207,7 +207,8 @@ class OutgoingCallActivity : ProximitySensorActivity() {
|
|||
for (call in coreContext.core.calls) {
|
||||
if (call.state == Call.State.OutgoingInit ||
|
||||
call.state == Call.State.OutgoingProgress ||
|
||||
call.state == Call.State.OutgoingRinging
|
||||
call.state == Call.State.OutgoingRinging ||
|
||||
call.state == Call.State.OutgoingEarlyMedia
|
||||
) {
|
||||
return call
|
||||
}
|
||||
|
|
|
@ -114,6 +114,7 @@ open class CallViewModel(val call: Call) : GenericContactViewModel(call.remoteAd
|
|||
call.addListener(listener)
|
||||
|
||||
isPaused.value = call.state == Call.State.Paused
|
||||
isOutgoingEarlyMedia.value = call.state == Call.State.OutgoingEarlyMedia
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
|
|
|
@ -28,6 +28,7 @@ import android.content.Context
|
|||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.os.IBinder
|
||||
import org.linphone.core.tools.Log
|
||||
|
||||
// Below classes are required to be able to create our DummySyncService...
|
||||
internal class DummyAuthenticator(context: Context) : AbstractAccountAuthenticator(context) {
|
||||
|
@ -88,6 +89,7 @@ class DummyAuthenticationService : Service() {
|
|||
|
||||
override fun onCreate() {
|
||||
authenticator = DummyAuthenticator(this)
|
||||
Log.i("[Dummy Auth Service] Authenticator created")
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent): IBinder {
|
||||
|
|
|
@ -24,6 +24,7 @@ import android.app.Service
|
|||
import android.content.*
|
||||
import android.os.Bundle
|
||||
import android.os.IBinder
|
||||
import org.linphone.core.tools.Log
|
||||
|
||||
// Below classes are required to be able to use our own contact MIME type entry...
|
||||
class DummySyncAdapter(context: Context, autoInit: Boolean) : AbstractThreadedSyncAdapter(context, autoInit) {
|
||||
|
@ -44,8 +45,10 @@ class DummySyncService : Service() {
|
|||
|
||||
override fun onCreate() {
|
||||
synchronized(syncAdapterLock) {
|
||||
Log.i("[Dummy Sync Adapter] Sync Service created")
|
||||
if (syncAdapter == null) {
|
||||
syncAdapter = DummySyncAdapter(applicationContext, true)
|
||||
Log.i("[Dummy Sync Adapter] Sync Adapter created")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue