mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add check for redirect to prevent welcome screen again
This commit is contained in:
parent
23aa3de53f
commit
20331c13dd
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue