Add check for redirect to prevent welcome screen again

This commit is contained in:
misaochan 2016-08-10 17:48:49 +12:00
parent 23aa3de53f
commit 20331c13dd
2 changed files with 6 additions and 2 deletions

View file

@ -188,8 +188,11 @@ public class LoginActivity extends AccountAuthenticatorActivity {
});
if (savedInstanceState == null) {
Intent welcomeIntent = new Intent(this, WelcomeActivity.class);
startActivity(welcomeIntent);
Bundle extras = getIntent().getExtras();
if (extras == null || extras.getBoolean("redirected") == false ) {
Intent welcomeIntent = new Intent(this, WelcomeActivity.class);
startActivity(welcomeIntent);
}
}
}

View file

@ -37,6 +37,7 @@ public class SignupActivity extends Activity {
// Signup success, so load LoginActivity again
Log.d("SignupActivity", "Overriding URL" + url);
Intent intent = new Intent(getApplicationContext(), LoginActivity.class);
intent.putExtra("Redirected", true);
startActivity(intent);
return true;
} else {