Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // general info:
- // 2 tables penetrations / products.
- // penetration has one or more products.
- // setting other data of model penetration
- penetration.setHeight(spinner4.getSelectedItem().toString());
- penetration.setWall(spinner2.getSelectedItem().toString());
- penetration.setPosition(position.getText().toString());
- // Now I'd like to save the selected products from selectboxes
- // product 1 + 2 selected
- products = new RealmList<>();
- if(selectedStrings != null) {
- for (String string : selectedStrings) {
- // Probably wrong as fuck
- Product product = new Product();
- product.setProduct(string);
- products.add(product);
- }
- }
- penetration.setProducts(products);
Advertisement
Add Comment
Please, Sign In to add comment