mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Commented out workaround for now
This commit is contained in:
parent
0e7f00cddd
commit
c2292fdadc
2 changed files with 5 additions and 10 deletions
|
|
@ -27,15 +27,8 @@ import androidx.appcompat.app.AppCompatActivity
|
|||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.WindowCompat
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.emoji2.text.EmojiCompat
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.linphone.LinphoneApplication.Companion.coreContext
|
||||
import org.linphone.R
|
||||
import org.linphone.core.tools.Log
|
||||
import org.linphone.databinding.MainActivityBinding
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
|
@ -98,6 +91,9 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
private fun loadContacts() {
|
||||
coreContext.contactsManager.loadContacts(this)
|
||||
|
||||
/* TODO: Uncomment later, only fixes a small UI display issue for contacts with emoji in the name
|
||||
val emojiCompat = coreContext.emojiCompat
|
||||
lifecycleScope.launch {
|
||||
withContext(Dispatchers.IO) {
|
||||
|
|
@ -108,13 +104,13 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
Log.i(
|
||||
"[Main Activity] Emoji compat library loading status is ${emojiCompat.loadState}, loading contacts"
|
||||
"[Main Activity] Emoji compat library loading status is ${emojiCompat.loadState}, re-loading contacts"
|
||||
)
|
||||
coreContext.postOnMainThread {
|
||||
// Contacts loading must be started from UI thread
|
||||
coreContext.contactsManager.loadContacts(this@MainActivity)
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import android.os.Bundle
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.animation.Animation
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import org.linphone.databinding.NewContactFragmentBinding
|
||||
import org.linphone.ui.fragment.GenericFragment
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue