Populate the warning dialog with the messages. Fix the onCLick and onCancel to not finish the activity but instead make the workflow move on to the viewer.

This commit is contained in:
Kevin Ruland 2012-02-16 19:22:19 +00:00
parent f5d3884ce9
commit 621938dc56

View File

@ -112,7 +112,6 @@ implements TCQueryAction.OnTCQueryCompleteListener, OpenRocketLoaderFragment.OnO
WarningSet warnings = ((Application)OpenRocketLoaderActivity.this.getApplication()).getWarnings();
if (warnings == null || warnings.isEmpty()) {
} else {
// TODO - Build a warning listing dialog
DialogFragment newFragment = WarningDialogFragment.newInstance();
newFragment.show(getSupportFragmentManager(), "dialog");
return;
@ -134,7 +133,7 @@ implements TCQueryAction.OnTCQueryCompleteListener, OpenRocketLoaderFragment.OnO
displayWarningDialog();
}
private void moveOnToViewer() {
public void moveOnToViewer() {
Intent i = new Intent(this,OpenRocketViewer.class);
startActivity(i);
finish();