mirror of https://github.com/BOINC/boinc.git
android: bugfix. clear back stack after successfully finishing the project attach wizard.
This commit is contained in:
parent
b7b7e83af8
commit
8da6ecbd20
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue