mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 23:54:06 +03:00
28 lines
942 B
Kotlin
28 lines
942 B
Kotlin
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
|
|
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 }
|
|
super.onCreate(savedInstanceState)
|
|
setContent {
|
|
BitwardenTheme {
|
|
RootNavScreen(
|
|
onSplashScreenRemoved = { shouldShowSplashScreen = false },
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|