From ad92053018dc468310fa3bbf57950922c3bef81f Mon Sep 17 00:00:00 2001 From: misaochan Date: Wed, 10 Aug 2016 18:01:44 +1200 Subject: [PATCH] Modify conditions --- app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java b/app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java index b8ae16c87..6917eb280 100644 --- a/app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java +++ b/app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.java @@ -189,7 +189,9 @@ public class LoginActivity extends AccountAuthenticatorActivity { if (savedInstanceState == null) { Bundle extras = getIntent().getExtras(); - if (extras == null || extras.getBoolean("redirected") == false ) { + // Only load welcome screen if we weren't redirected from SignupActivity + if (extras == null || extras.getBoolean("Redirected") != true ) { + Log.d("SignupActivity", "Redirected? " + Boolean.toString(extras.getBoolean("Redirected"))); Intent welcomeIntent = new Intent(this, WelcomeActivity.class); startActivity(welcomeIntent); }