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;
|
return true;
|
||||||
}
|
}
|
||||||
else if (id == R.id.action_edit) {
|
else if (id == R.id.action_edit) {
|
||||||
Intent intent = new Intent(this, EditActivity.class);
|
if(!currentExecutor.isRunning()) {
|
||||||
startActivity(intent);
|
Intent intent = new Intent(this, EditActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Toast.makeText(this, "Stop execution to edit behaviours", Toast.LENGTH_SHORT).show();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (id == R.id.action_settings) {
|
else if (id == R.id.action_settings) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue