From 90af00ca8b40d9875fd3bd3af64941c5739854f1 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Tue, 3 Dec 2024 10:49:31 +0100 Subject: [PATCH] chore: Remove code to test SplashScreen --- .../com/infomaniak/swisstransfer/ui/LaunchActivity.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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() {