Refactored Executor reset function
This commit is contained in:
parent
4ecca44cc1
commit
9b6ba3d086
4 changed files with 9 additions and 7 deletions
|
|
@ -191,8 +191,10 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
}
|
||||
}
|
||||
else if (id == R.id.action_reset) {
|
||||
if(executor != null)
|
||||
if(executor != null) {
|
||||
executor.terminate();
|
||||
executor.reset();
|
||||
}
|
||||
if(statusFragment != null)
|
||||
statusFragment.reset();
|
||||
if(behaviourListFragment != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue