diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/LaunchActivity.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/LaunchActivity.kt index 62c9f3f58..bfb0af411 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/LaunchActivity.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/LaunchActivity.kt @@ -20,11 +20,12 @@ package com.infomaniak.swisstransfer.ui import android.annotation.SuppressLint import android.content.Intent import android.os.Bundle -import android.view.View import androidx.activity.ComponentActivity import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen import com.infomaniak.swisstransfer.ui.utils.AccountUtils import dagger.hilt.android.AndroidEntryPoint +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.launch import javax.inject.Inject @AndroidEntryPoint @@ -39,11 +40,8 @@ class LaunchActivity : ComponentActivity() { super.onCreate(savedInstanceState) - // TODO: Remove this after SplashScreen tests. - findViewById(android.R.id.content).viewTreeObserver.addOnPreDrawListener { false } - - // startTargetActivity() - // finish() + startTargetActivity() + finish() } private fun startTargetActivity() {