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 c5f8204e1..b62d4330a 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 @@ -77,7 +77,6 @@ public class LoginActivity extends AccountAuthenticatorActivity { Bundle extras = context.getIntent().getExtras(); - if (extras != null) { Log.d("LoginActivity", "Bundle of extras: " + extras.toString()); if (accountCreated) { // Pass the new account back to the account manager @@ -94,11 +93,10 @@ public class LoginActivity extends AccountAuthenticatorActivity { // FIXME: If the user turns it off, it shouldn't be auto turned back on ContentResolver.setSyncAutomatically(account, ContributionsContentProvider.AUTHORITY, true); // Enable sync by default! ContentResolver.setSyncAutomatically(account, ModificationsContentProvider.AUTHORITY, true); // Enable sync by default! - + Intent intent = new Intent(context, ContributionsActivity.class); startActivity(intent); - } else { int response; if(result.equals("NetworkFailure")) { @@ -121,7 +119,6 @@ public class LoginActivity extends AccountAuthenticatorActivity { Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show(); dialog.cancel(); } - } @Override @@ -150,7 +147,6 @@ public class LoginActivity extends AccountAuthenticatorActivity { return "NetworkFailure"; } } - } @Override