title: Activity Object List gets modified from dialog Object List
body: <p>I have an <code>activity</code> from which I created a dialog passing a <code>list of objects</code>.
  In the dialog, I have modified the global <code>object list</code> data.</p>
  
  <p>Problem is my activity <code>object list</code> is also modified from the dialog data manipulation. I didn't use any listener or method to do caller class data. AFAIK these are a separate object and doesn't have the same reference, So it shouldn't have changed. </p>
  
  <p>Activity caller section: </p>
  
  <pre><code>ProductQuantityReviewDialog dialog = new ProductQuantityReviewDialog(context, salesOrderList);
  dialog.show();
  </code></pre>
  
  <p>Dialog class : </p>
  
  <pre><code>private HashMap&lt;Integer, OrderSalesModel&gt; salesOrderList;
  
  public ProductQuantityReviewDialog(@NonNull Context context, HashMap&lt;Integer, OrderSalesModel&gt; salesOrderList) {
          super(context);
          this.context = context;
          this.salesOrderList = salesOrderList;
      }
  </code></pre>
  
  <p>Update: 
  Tried in this way but same problem. </p>
  
  <pre><code>    public ProductQuantityReviewDialog(@NonNull Context context, HashMap&lt;Integer, OrderSalesModel&gt; salesOrderList) {
          super(context);
          this.context = context;
          orderList = new HashMap&lt;&gt;(salesOrderList);
         // orderList.putAll(salesOrderList);
  }
  </code></pre>