package com.peachpasswords import android.graphics.Color as AndroidColor import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.view.WindowManager import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen import androidx.fragment.app.FragmentActivity import dagger.hilt.android.AndroidEntryPoint import com.peachpasswords.ui.PeachAppNavHost import com.peachpasswords.ui.theme.PeachTheme // FragmentActivity (not ComponentActivity) so androidx BiometricPrompt can attach. @AndroidEntryPoint class MainActivity : FragmentActivity() { override fun onCreate(savedInstanceState: Bundle?) { installSplashScreen() super.onCreate(savedInstanceState) // Match the splash/window fill to --bg so launch never flashes white. window.setBackgroundDrawable(ColorDrawable(AndroidColor.parseColor("#0C0A06"))) enableEdgeToEdge() // Block screenshots / recents thumbnails of the vault in release builds. if (!BuildConfig.DEBUG) { window.setFlags( WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE, ) } setContent { // Theme/accent are wired to persisted settings in a later phase; the // shell uses the dark default until SettingsViewModel lands. PeachTheme { PeachAppNavHost() } } } }