I have the following code that returns a valid Order:
Order order = mOrderConnector.getOrder(orderId);
One LineItem has a discount and I'm trying to change the name of the discount. I can get a reference to the Discount in question and when I call setName() on the Discount object the JSON string associated with the order above gets updated in memory as expected. However when I call: order = mOrderConnector.updateOrder(order); the JSON string in the order variable that is returned goes back to what it was before I updated the discount name.
Does the updateOrder() method update the local database (content provider) or is there another method call I need to make so the Order object reflects the changes that I made?