mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add null check and simplify if statement
This commit is contained in:
parent
0e36430db7
commit
f9bc27d09a
1 changed files with 4 additions and 2 deletions
|
|
@ -190,8 +190,10 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
|||
if (savedInstanceState == null) {
|
||||
Bundle extras = getIntent().getExtras();
|
||||
// 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")));
|
||||
if (extras == null || !extras.getBoolean("Redirected")) {
|
||||
if (extras != null) {
|
||||
Log.d("SignupActivity", "Redirected? " + Boolean.toString(extras.getBoolean("Redirected")));
|
||||
}
|
||||
Intent welcomeIntent = new Intent(this, WelcomeActivity.class);
|
||||
startActivity(welcomeIntent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue