Skip to content

Commit

Permalink
[#53] Removing crash when we close or hit back button in 'use prepare…
Browse files Browse the repository at this point in the history
…d questions'
  • Loading branch information
chrqls committed Dec 11, 2013
1 parent ad88f90 commit 2fadea1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void onClick(View v) {
intent.putExtra(GeneralActivity.PARAM_RESULTS, results);
intent.putExtra(GeneralActivity.PARAM_STATUS, status);
startActivity(intent);
ChooseActivityFlowDialog.this.finish();
//ChooseActivityFlowDialog.this.finish();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ private void clearSelection() {
@Override
public void onBackPressed() {
super.onBackPressed();

//if (fileQuestionsList.length == 0) {
if (iqsets.size() == 0) {
Intent intent = new Intent(this, ChooseActivityFlowDialog.class);
intent.putExtra(GeneralActivity.PARAM_IP, ip);
intent.putExtra(GeneralActivity.PARAM_RESULTS, results);
startActivity(intent);
}

// TODO Why does this condition exist?? (12/11/13)
// if (fileQuestionsList.length == 0) {
// if (iqsets.size() == 0) {
// Intent intent = new Intent(this, ChooseActivityFlowDialog.class);
// intent.putExtra(GeneralActivity.PARAM_IP, ip);
// intent.putExtra(GeneralActivity.PARAM_RESULTS, results);
// startActivity(intent);
// }
this.finish();
}

Expand Down

0 comments on commit 2fadea1

Please sign in to comment.