Removed interrupt current stage dialog
This commit is contained in:
parent
f4d7b6b503
commit
bb191de7d0
1 changed files with 2 additions and 25 deletions
|
@ -406,17 +406,6 @@ public class TourViewActivity extends SherlockFragmentActivity {
|
||||||
public void startStage(final StageInformation stage) {
|
public void startStage(final StageInformation stage) {
|
||||||
if(customization.isStageVisited(stage.getOrder()) /*&& stage.getTour() == customization.getSelectedTour()*/) {
|
if(customization.isStageVisited(stage.getOrder()) /*&& stage.getTour() == customization.getSelectedTour()*/) {
|
||||||
customization.showCompleteStageFragment(this, stage, true);
|
customization.showCompleteStageFragment(this, stage, true);
|
||||||
} else if (stage != customization.getSelectedStage() && customization.getSelectedStage() != null) {
|
|
||||||
Builder bld = new AlertDialog.Builder(this);
|
|
||||||
bld.setMessage(R.string.start_new_stage);
|
|
||||||
bld.setPositiveButton(R.string.default_buttons_yes, new OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
customization.runStage(TourViewActivity.this, stage.getTour(), stage, customization.getSelectedStage() != stage);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
bld.setNegativeButton(R.string.default_buttons_no, null);
|
|
||||||
bld.show();
|
|
||||||
} else {
|
} else {
|
||||||
customization.runStage(TourViewActivity.this, stage.getTour(), stage, customization.getSelectedStage() != stage);
|
customization.runStage(TourViewActivity.this, stage.getTour(), stage, customization.getSelectedStage() != stage);
|
||||||
}
|
}
|
||||||
|
@ -424,20 +413,8 @@ public class TourViewActivity extends SherlockFragmentActivity {
|
||||||
|
|
||||||
|
|
||||||
public void startTour(final TourInformation tour) {
|
public void startTour(final TourInformation tour) {
|
||||||
if (tour != customization.getSelectedTour() && customization.getSelectedTour() != null) {
|
startTourImpl(tour);
|
||||||
Builder bld = new AlertDialog.Builder(this);
|
|
||||||
bld.setMessage(R.string.start_new_stage);
|
|
||||||
bld.setPositiveButton(R.string.default_buttons_yes, new OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
startTourImpl(tour);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
bld.setNegativeButton(R.string.default_buttons_no, null);
|
|
||||||
bld.show();
|
|
||||||
} else {
|
|
||||||
startTourImpl(tour);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startTourImpl(TourInformation tour) {
|
private void startTourImpl(TourInformation tour) {
|
||||||
|
|
Loading…
Reference in a new issue