Fixed landscape mode in status screen
This commit is contained in:
parent
ffe6425906
commit
67b468e082
2 changed files with 16 additions and 10 deletions
|
|
@ -70,7 +70,6 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
if(currentExecutor == null) {
|
||||
log.info("Creating new instance of executor");
|
||||
currentExecutor = new UeControlExecutor();
|
||||
currentExecutor.setThroughputListener(statusFragment.getThroughputListener());
|
||||
File input = new File(this.getFilesDir(), BEHAVIOUR_SAVE_FILE);
|
||||
if (input.exists()) {
|
||||
try {
|
||||
|
|
@ -87,8 +86,11 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
currentExecutor.addBehaviour(new UeBehaviourSleep(4000));
|
||||
}
|
||||
}
|
||||
else
|
||||
else {
|
||||
log.info("Using existing executor");
|
||||
}
|
||||
|
||||
currentExecutor.setThroughputListener(statusFragment.getThroughputListener());
|
||||
updateExecutionState();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue