Added state saving
This commit is contained in:
parent
e020204ce5
commit
580f4fdc3d
7 changed files with 56 additions and 12 deletions
|
|
@ -19,6 +19,7 @@ import com.ericsson.uecontrol.gui.util.DynamicListView;
|
|||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -89,4 +90,14 @@ public class EditActivity extends ListActivity implements AdapterView.OnItemClic
|
|||
dialog.setConfigurator(confer);
|
||||
dialog.show(getFragmentManager(), "behaviour_configurator");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
try {
|
||||
File input = new File(this.getFilesDir(), MainActivity.BEHAVIOUR_SAVE_FILE);
|
||||
executor.save(input.getAbsolutePath());
|
||||
log.debug("Saved current state");
|
||||
}catch(Exception e){log.error(null, e);}
|
||||
super.onPause();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue