Try this:
mProductList2 = new ArrayList<ProductSample>(productSampleList);
As it is currently, productSampleList
, mProductList
and mProductList2
all point to the same object, so changes to one will be reflected on the others. My solution was to simply create a copy of the list that can be modified independently of the original, but remember: productSampleList
and mProductList
are still pointing to the same object.