mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Add fixme
This commit is contained in:
parent
6452cd3988
commit
ab78d43b79
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
||||||
Bundle authResult = new Bundle();
|
Bundle authResult = new Bundle();
|
||||||
authResult.putString(AccountManager.KEY_ACCOUNT_NAME, username);
|
authResult.putString(AccountManager.KEY_ACCOUNT_NAME, username);
|
||||||
authResult.putString(AccountManager.KEY_ACCOUNT_TYPE, WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
|
authResult.putString(AccountManager.KEY_ACCOUNT_TYPE, WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
|
||||||
|
//FIXME: NPE here sometimes, otherwise goes to Signup screen upon successful login...
|
||||||
response.onResult(authResult);
|
response.onResult(authResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -190,6 +191,7 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
Bundle extras = getIntent().getExtras();
|
Bundle extras = getIntent().getExtras();
|
||||||
// Only load welcome screen if we weren't redirected from SignupActivity
|
// Only load welcome screen if we weren't redirected from SignupActivity
|
||||||
|
// FIXME: This Bundle seems to clash with the Bundle at line 81. Logging in brings user to signup screen - why????
|
||||||
if (extras == null || !extras.getBoolean("Redirected")) {
|
if (extras == null || !extras.getBoolean("Redirected")) {
|
||||||
if (extras != null) {
|
if (extras != null) {
|
||||||
Log.d("SignupActivity", "Redirected? " + Boolean.toString(extras.getBoolean("Redirected")));
|
Log.d("SignupActivity", "Redirected? " + Boolean.toString(extras.getBoolean("Redirected")));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue