Fix a bug where the motor configuration was not being pulled correctly. It is stored...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Mon, 4 Jun 2012 18:59:45 +0000 (18:59 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Mon, 4 Jun 2012 18:59:45 +0000 (18:59 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@746 180e2498-e6e9-4542-8430-84ac67f01cd8

android/src/net/sf/openrocket/android/rocket/Simulations.java

index 019accdd8968e00bfb92174dbd6715a50b467e5e..e121cdaf58050943807264c67c32c8066c072a1e 100644 (file)
@@ -127,7 +127,8 @@ implements SharedPreferences.OnSharedPreferenceChangeListener
                                Simulation sim = this.getItem(position);\r
                                ((TextView)v.findViewById(android.R.id.text1)).setText( sim.getName() );\r
                                StringBuilder sb = new StringBuilder();\r
-                               sb.append("motors: ").append(sim.getConfiguration().getMotorConfigurationDescription());\r
+                               String motorConfig = sim.getOptions().getMotorConfigurationID();\r
+                               sb.append("motors: ").append(rocketDocument.getRocket().getMotorConfigurationNameOrDescription(motorConfig));\r
                                Unit distanceUnit = UnitGroup.UNITS_DISTANCE.getDefaultUnit();\r
                                FlightData flightData  = sim.getSimulatedData();\r
                                if ( flightData != null ) {\r