mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add intent flags
This commit is contained in:
parent
fa91b09b5b
commit
9242c2144f
1 changed files with 4 additions and 1 deletions
|
|
@ -93,8 +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!
|
||||
//FIXME: This is taking users back to SignupActivity
|
||||
|
||||
//FIXME: This is supposed to return user to ContributionsActivity (launcher activity), but is instead taking users back to SignupActivity
|
||||
context.finish();
|
||||
|
||||
} else {
|
||||
int response;
|
||||
if(result.equals("NetworkFailure")) {
|
||||
|
|
@ -244,6 +246,7 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
|||
//Called when Sign Up button is clicked
|
||||
public void signUp(View view) {
|
||||
Intent intent = new Intent(this, SignupActivity.class);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
||||
startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue