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:
Sylvain Berfini 2021-11-09 11:25:50 +01:00
parent 0488d70d0f
commit 7ff3d7abfe
4 changed files with 8 additions and 1 deletions

View file

@ -207,7 +207,8 @@ class OutgoingCallActivity : ProximitySensorActivity() {
for (call in coreContext.core.calls) { for (call in coreContext.core.calls) {
if (call.state == Call.State.OutgoingInit || if (call.state == Call.State.OutgoingInit ||
call.state == Call.State.OutgoingProgress || call.state == Call.State.OutgoingProgress ||
call.state == Call.State.OutgoingRinging call.state == Call.State.OutgoingRinging ||
call.state == Call.State.OutgoingEarlyMedia
) { ) {
return call return call
} }

View file

@ -114,6 +114,7 @@ open class CallViewModel(val call: Call) : GenericContactViewModel(call.remoteAd
call.addListener(listener) call.addListener(listener)
isPaused.value = call.state == Call.State.Paused isPaused.value = call.state == Call.State.Paused
isOutgoingEarlyMedia.value = call.state == Call.State.OutgoingEarlyMedia
} }
override fun onCleared() { override fun onCleared() {

View file

@ -28,6 +28,7 @@ import android.content.Context
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
import android.os.IBinder import android.os.IBinder
import org.linphone.core.tools.Log
// Below classes are required to be able to create our DummySyncService... // Below classes are required to be able to create our DummySyncService...
internal class DummyAuthenticator(context: Context) : AbstractAccountAuthenticator(context) { internal class DummyAuthenticator(context: Context) : AbstractAccountAuthenticator(context) {
@ -88,6 +89,7 @@ class DummyAuthenticationService : Service() {
override fun onCreate() { override fun onCreate() {
authenticator = DummyAuthenticator(this) authenticator = DummyAuthenticator(this)
Log.i("[Dummy Auth Service] Authenticator created")
} }
override fun onBind(intent: Intent): IBinder { override fun onBind(intent: Intent): IBinder {

View file

@ -24,6 +24,7 @@ import android.app.Service
import android.content.* import android.content.*
import android.os.Bundle import android.os.Bundle
import android.os.IBinder 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... // Below classes are required to be able to use our own contact MIME type entry...
class DummySyncAdapter(context: Context, autoInit: Boolean) : AbstractThreadedSyncAdapter(context, autoInit) { class DummySyncAdapter(context: Context, autoInit: Boolean) : AbstractThreadedSyncAdapter(context, autoInit) {
@ -44,8 +45,10 @@ class DummySyncService : Service() {
override fun onCreate() { override fun onCreate() {
synchronized(syncAdapterLock) { synchronized(syncAdapterLock) {
Log.i("[Dummy Sync Adapter] Sync Service created")
if (syncAdapter == null) { if (syncAdapter == null) {
syncAdapter = DummySyncAdapter(applicationContext, true) syncAdapter = DummySyncAdapter(applicationContext, true)
Log.i("[Dummy Sync Adapter] Sync Adapter created")
} }
} }
} }