Fixed Run button, again!
Added reset button. Improved some things.
This commit is contained in:
parent
f5e95e683c
commit
331b244a0e
6 changed files with 31 additions and 11 deletions
|
|
@ -98,6 +98,8 @@ public class EditActivity extends ListActivity implements AdapterView.OnItemClic
|
|||
File input = new File(this.getFilesDir(), MainActivity.BEHAVIOUR_SAVE_FILE);
|
||||
executor.save(input.getAbsolutePath());
|
||||
log.debug("Saved current state");
|
||||
log.debug("Resetting executor");
|
||||
executor.reset();
|
||||
}catch(Exception e){log.error(null, e);}
|
||||
super.onPause();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,6 +164,10 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
updateExecutionState();
|
||||
return true;
|
||||
}
|
||||
else if (id == R.id.action_reset) {
|
||||
currentExecutor.reset();
|
||||
updateExecutionState();
|
||||
}
|
||||
else if (id == R.id.action_edit) {
|
||||
if(!currentExecutor.isRunning()) {
|
||||
Intent intent = new Intent(this, EditActivity.class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue