mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Fix AuthenticatorActivity taking over FirstRunActivity
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
parent
b7423184f4
commit
0f77886516
1 changed files with 1 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue