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 072e5dde4d902942d205afacebb5322cf41ed0da..66dfd5934077b9f0337cb3a7a71f02063654c714 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)