Updated on 2026-08-14
This commit is contained in:
parent
4d2e8812de
commit
f7325b9cbc
1 changed files with 14 additions and 7 deletions
|
|
@ -177,12 +177,7 @@ class MainActivity : AppCompatActivity(), ActivityResultCallbackHolder {
|
||||||
val splashScreen = installSplashScreen()
|
val splashScreen = installSplashScreen()
|
||||||
TangemLogger.i("Splash screen installed")
|
TangemLogger.i("Splash screen installed")
|
||||||
|
|
||||||
enableEdgeToEdge(
|
applyEdgeToEdge()
|
||||||
navigationBarStyle = SystemBarStyle.auto(
|
|
||||||
Color.Transparent.toArgb(),
|
|
||||||
Color.Transparent.toArgb(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|
||||||
|
|
@ -200,7 +195,10 @@ class MainActivity : AppCompatActivity(), ActivityResultCallbackHolder {
|
||||||
}
|
}
|
||||||
|
|
||||||
splashScreen.setKeepOnScreenCondition { viewModel.isSplashScreenShown }
|
splashScreen.setKeepOnScreenCondition { viewModel.isSplashScreenShown }
|
||||||
splashScreen.setOnExitAnimationListener { provider -> provider.remove() }
|
splashScreen.setOnExitAnimationListener { provider ->
|
||||||
|
provider.remove()
|
||||||
|
applyEdgeToEdge()
|
||||||
|
}
|
||||||
|
|
||||||
installActivityDependencies()
|
installActivityDependencies()
|
||||||
observeAppThemeModeUpdates()
|
observeAppThemeModeUpdates()
|
||||||
|
|
@ -224,6 +222,15 @@ class MainActivity : AppCompatActivity(), ActivityResultCallbackHolder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun applyEdgeToEdge() {
|
||||||
|
enableEdgeToEdge(
|
||||||
|
navigationBarStyle = SystemBarStyle.auto(
|
||||||
|
Color.Transparent.toArgb(),
|
||||||
|
Color.Transparent.toArgb(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
private fun setRootContent() {
|
private fun setRootContent() {
|
||||||
// for now activity is singleTop and after going to ChromeCustomTab it calls onCreate but onDestroy
|
// for now activity is singleTop and after going to ChromeCustomTab it calls onCreate but onDestroy
|
||||||
// doesn't calls. It lead to issue that decompose nav stack is not saved in bundle and to restore it
|
// doesn't calls. It lead to issue that decompose nav stack is not saved in bundle and to restore it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue