bitwarden-android/app/src/main/java/com/x8bit/bitwarden/MainActivity.kt

29 lines
942 B
Kotlin
Raw Normal View History

2023-08-23 00:03:42 +03:00
package com.x8bit.bitwarden
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.x8bit.bitwarden.ui.platform.feature.rootnav.RootNavScreen
import com.x8bit.bitwarden.ui.platform.theme.BitwardenTheme
2023-08-23 00:03:42 +03:00
import dagger.hilt.android.AndroidEntryPoint
/**
* Primary entry point for the application.
*/
@AndroidEntryPoint
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
var shouldShowSplashScreen = true
installSplashScreen().setKeepOnScreenCondition { shouldShowSplashScreen }
2023-08-23 00:03:42 +03:00
super.onCreate(savedInstanceState)
setContent {
BitwardenTheme {
RootNavScreen(
onSplashScreenRemoved = { shouldShowSplashScreen = false },
)
}
}
2023-08-23 00:03:42 +03:00
}
}