File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/src/main/java/fr/free/nrw/commons/auth Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3333import fr .free .nrw .commons .EventLog ;
3434import fr .free .nrw .commons .R ;
3535import fr .free .nrw .commons .WelcomeActivity ;
36+ import fr .free .nrw .commons .contributions .ContributionsActivity ;
3637import fr .free .nrw .commons .contributions .ContributionsContentProvider ;
3738import fr .free .nrw .commons .modifications .ModificationsContentProvider ;
3839
@@ -95,7 +96,10 @@ protected void onPostExecute(String result) {
9596 ContentResolver .setSyncAutomatically (account , ModificationsContentProvider .AUTHORITY , true ); // Enable sync by default!
9697
9798 //FIXME: This is supposed to return user to ContributionsActivity (launcher activity), but is instead taking users back to SignupActivity
98- context .finish ();
99+ //context.finish();
100+ Intent intent = new Intent (context , ContributionsActivity .class );
101+ startActivity (intent );
102+
99103
100104 } else {
101105 int response ;
@@ -246,7 +250,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
246250 //Called when Sign Up button is clicked
247251 public void signUp (View view ) {
248252 Intent intent = new Intent (this , SignupActivity .class );
249- intent .addFlags (Intent .FLAG_ACTIVITY_NO_HISTORY );
253+ // FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
254+ //intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
250255 startActivity (intent );
251256 }
252257}
You can’t perform that action at this time.
0 commit comments