Skip to content

Commit

Permalink
Add code to test SplashScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 8, 2024
1 parent 4552529 commit 6e4c043
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class MainActivity : ComponentActivity() {
installSplashScreen()
enableEdgeToEdge()
super.onCreate(savedInstanceState)
// TODO: Remove this after SplashScreen tests.
// findViewById<View>(android.R.id.content).viewTreeObserver.addOnPreDrawListener { false }
setContent {
val appSettings by settingsViewModel.appSettingsFlow.collectAsStateWithLifecycle(null)
SwissTransferTheme(isDarkTheme = isDarkTheme(getTheme = { appSettings?.theme })) {
Expand Down

0 comments on commit 6e4c043

Please sign in to comment.