Fix AuthenticatorActivity taking over FirstRunActivity

Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
ZetaTom 2024-03-18 11:05:17 +01:00
parent b7423184f4
commit 0f77886516
No known key found for this signature in database
GPG key ID: 3536EB6B4203D957

View file

@ -30,7 +30,6 @@ import androidx.annotation.VisibleForTesting
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.nextcloud.client.preferences.AppPreferences
import com.owncloud.android.R
import com.owncloud.android.authentication.AuthenticatorActivity
import com.owncloud.android.databinding.ActivitySplashBinding
import com.owncloud.android.ui.activity.BaseActivity
import com.owncloud.android.ui.activity.FileDisplayActivity
@ -76,9 +75,7 @@ class LauncherActivity : BaseActivity() {
private fun scheduleSplashScreen() {
Handler(Looper.getMainLooper()).postDelayed({
if (!user.isPresent) {
startActivity(Intent(this, AuthenticatorActivity::class.java))
} else {
if (user.isPresent) {
startActivity(Intent(this, FileDisplayActivity::class.java))
}
finish()