Explicitly set domain for external link handling.
And revert change: let ElementCallActivity handle again `call.element.io` links.
This commit is contained in:
parent
86838e7277
commit
6e7bbd6972
4 changed files with 11 additions and 43 deletions
|
|
@ -84,7 +84,9 @@
|
|||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="https" />
|
||||
<data android:host="*.element.io" />
|
||||
<data android:host="app.element.io" />
|
||||
<data android:host="develop.element.io" />
|
||||
<data android:host="staging.element.io" />
|
||||
</intent-filter>
|
||||
<!--
|
||||
matrix.to links
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ import io.element.android.compound.theme.ElementTheme
|
|||
import io.element.android.compound.theme.Theme
|
||||
import io.element.android.compound.theme.isDark
|
||||
import io.element.android.compound.theme.mapToTheme
|
||||
import io.element.android.features.call.ui.ElementCallActivity
|
||||
import io.element.android.features.lockscreen.api.handleSecureFlag
|
||||
import io.element.android.features.lockscreen.api.isLocked
|
||||
import io.element.android.libraries.architecture.bindings
|
||||
|
|
@ -59,13 +58,6 @@ class MainActivity : NodeActivity() {
|
|||
Timber.tag(loggerTag.value).w("onCreate, with savedInstanceState: ${savedInstanceState != null}")
|
||||
installSplashScreen()
|
||||
super.onCreate(savedInstanceState)
|
||||
if (ElementCallActivity.maybeStart(this, intent)) {
|
||||
Timber.tag(loggerTag.value).w("Starting Element Call Activity")
|
||||
if (savedInstanceState == null) {
|
||||
finish()
|
||||
return
|
||||
}
|
||||
}
|
||||
appBindings = bindings()
|
||||
appBindings.lockScreenService().handleSecureFlag(this)
|
||||
enableEdgeToEdge()
|
||||
|
|
@ -149,12 +141,6 @@ class MainActivity : NodeActivity() {
|
|||
override fun onNewIntent(intent: Intent) {
|
||||
super.onNewIntent(intent)
|
||||
Timber.tag(loggerTag.value).w("onNewIntent")
|
||||
|
||||
if (ElementCallActivity.maybeStart(this, intent)) {
|
||||
Timber.tag(loggerTag.value).w("Starting Element Call Activity")
|
||||
return
|
||||
}
|
||||
|
||||
// If the mainNode is not init yet, keep the intent for later.
|
||||
// It can happen when the activity is killed by the system. The methods are called in this order :
|
||||
// onCreate(savedInstanceState=true) -> onNewIntent -> onResume -> onMainNodeInit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue