Execution needs to be stopped before you can edit
This commit is contained in:
parent
088909c1b9
commit
257bd59cdb
1 changed files with 6 additions and 2 deletions
|
|
@ -147,8 +147,12 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
return true;
|
||||
}
|
||||
else if (id == R.id.action_edit) {
|
||||
Intent intent = new Intent(this, EditActivity.class);
|
||||
startActivity(intent);
|
||||
if(!currentExecutor.isRunning()) {
|
||||
Intent intent = new Intent(this, EditActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
else
|
||||
Toast.makeText(this, "Stop execution to edit behaviours", Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
}
|
||||
else if (id == R.id.action_settings) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue