From: kruland2607 Date: Mon, 18 Jun 2012 20:59:34 +0000 (+0000) Subject: When saving the ork file, save all the simulation data. X-Git-Tag: upstream/12.09^2~169 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e9bc3628be9090bd3cb14cfb97c2ec06befc9010;p=debian%2Fopenrocket When saving the ork file, save all the simulation data. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@790 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/android/src/net/sf/openrocket/android/CurrentRocket.java b/android/src/net/sf/openrocket/android/CurrentRocket.java index 187d46e2..a5468eeb 100644 --- a/android/src/net/sf/openrocket/android/CurrentRocket.java +++ b/android/src/net/sf/openrocket/android/CurrentRocket.java @@ -6,6 +6,7 @@ import java.io.IOException; import net.sf.openrocket.aerodynamics.WarningSet; import net.sf.openrocket.document.OpenRocketDocument; import net.sf.openrocket.document.Simulation; +import net.sf.openrocket.document.StorageOptions; import net.sf.openrocket.file.openrocket.OpenRocketSaver; import net.sf.openrocket.rocketcomponent.Rocket; import android.net.Uri; @@ -82,7 +83,10 @@ public class CurrentRocket { public void saveOpenRocketDocument() throws IOException { OpenRocketSaver saver = new OpenRocketSaver(); - saver.save(new File(fileUri.getPath()),rocketDocument); + StorageOptions options = new StorageOptions(); + options.setCompressionEnabled(true); + options.setSimulationTimeSkip(StorageOptions.SIMULATION_DATA_ALL); + saver.save(new File(fileUri.getPath()),rocketDocument,options); }