From 82bbba0f0ce466b77fd47653a06f1cdee7739243 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Wed, 26 Oct 2022 10:54:54 +0600 Subject: [PATCH] 6167-Hide_welcome_screens issue: https://gitlab.e.foundation/e/backlog/-/issues/6167 We don't want to show the welcome screen to mitigate confusion for users. --- .../at/bitfire/davdroid/ui/AccountsActivity.kt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt b/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt index 072e5dde4..66dfd5934 100644 --- a/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt +++ b/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt @@ -16,23 +16,18 @@ import androidx.activity.viewModels import androidx.annotation.AnyThread import androidx.appcompat.app.ActionBarDrawerToggle import androidx.appcompat.app.AppCompatActivity -import androidx.core.content.getSystemService import androidx.core.view.GravityCompat import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import at.bitfire.davdroid.DavUtils import at.bitfire.davdroid.R import at.bitfire.davdroid.databinding.ActivityAccountsBinding -import at.bitfire.davdroid.ui.intro.IntroActivity import at.bitfire.davdroid.ui.setup.LoginActivity import com.google.android.material.navigation.NavigationView import com.google.android.material.snackbar.Snackbar import dagger.hilt.android.AndroidEntryPoint import dagger.hilt.android.lifecycle.HiltViewModel import dagger.hilt.android.qualifiers.ApplicationContext -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.launch import javax.inject.Inject @AndroidEntryPoint @@ -53,16 +48,6 @@ class AccountsActivity: AppCompatActivity(), NavigationView.OnNavigationItemSele override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - if (savedInstanceState == null) { - CoroutineScope(Dispatchers.Default).launch { - // use a separate thread to check whether IntroActivity should be shown - if (IntroActivity.shouldShowIntroActivity(this@AccountsActivity)) { - val intro = Intent(this@AccountsActivity, IntroActivity::class.java) - startActivityForResult(intro, REQUEST_INTRO) - } - } - } - binding = ActivityAccountsBinding.inflate(layoutInflater) setContentView(binding.root) -- GitLab