android: bugfix. clear back stack after successfully finishing the project attach wizard.

This commit is contained in:
Joachim Fritzsch 2014-02-04 11:23:38 +01:00
parent b7b7e83af8
commit 8da6ecbd20
1 changed files with 3 additions and 1 deletions

View File

@ -228,7 +228,9 @@ public class AttachProjectWorkingActivity extends Activity{
public void finishButtonClicked(View view) {
Intent intent = new Intent(this, BOINCActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); //clear_top closes AttachProjectListActivity!
// add flags to return to main activity and clearing all others and clear the back stack
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra("targetFragment", R.string.tab_projects); // make activity display projects fragment
startActivity(intent);
}