Add fixme

This commit is contained in:
misaochan 2016-08-12 23:53:48 +12:00
parent 6452cd3988
commit ab78d43b79

View file

@ -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")));