Refactored Executor reset function

This commit is contained in:
Ziver Koc 2015-01-20 16:15:56 +01:00
parent 4ecca44cc1
commit 9b6ba3d086
4 changed files with 9 additions and 7 deletions

View file

@ -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)