Added way to delete motor configurations through long click in the configurations...
[debian/openrocket] / android / src / net / sf / openrocket / android / CurrentRocket.java
index 17e2929a02b46c36d478195021e411269af00529..f4b7861e298c47ac35b69bd7ff3860c9349104fa 100644 (file)
@@ -95,6 +95,11 @@ public class CurrentRocket {
                return configId;\r
        }\r
        \r
+       public synchronized void deleteMotorConfig( Context context, String config ) {\r
+               rocketDocument.getRocket().removeMotorConfigurationID(config);\r
+               notifyMotorConfigChanged(context);\r
+       }\r
+       \r
        /**\r
         * @param rocketDocument the rocketDocument to set\r
         */\r