mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 13:59:48 +01:00
initialize rootEglBase earlier (hopefully fixes crash)
There was a report that the app crashed after coming back from PIP mode. And i once saw in logs "call to OpenGL ES API with no current context (logged once per thread)" By initializing rootEglBase very early there is a chance this fixes these issues. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
89d51837b7
commit
c8b33a380a
@ -376,6 +376,8 @@ class CallActivity : CallBaseActivity() {
|
||||
Log.d(TAG, "onCreate")
|
||||
super.onCreate(savedInstanceState)
|
||||
sharedApplication!!.componentApplication.inject(this)
|
||||
|
||||
rootEglBase = EglBase.create()
|
||||
binding = CallActivityBinding.inflate(layoutInflater)
|
||||
setContentView(binding!!.root)
|
||||
hideNavigationIfNoPipAvailable()
|
||||
@ -765,7 +767,6 @@ class CallActivity : CallBaseActivity() {
|
||||
}
|
||||
|
||||
private fun basicInitialization() {
|
||||
rootEglBase = EglBase.create()
|
||||
createCameraEnumerator()
|
||||
|
||||
// Create a new PeerConnectionFactory instance.
|
||||
|
Loading…
Reference in New Issue
Block a user