Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. new CompressFileAsyncTask(new AsyncResponse() {
  2. @Override
  3. public void processFinish(List<Uri> output) {
  4. for (int i = 0; i < output.size(); i++) {
  5. Timber.e("Received from Async Class contains => " + output.get(i));
  6. }
  7.  
  8. AddProductModel tempProductModel = new AddProductModel("", "", "", dummyList);
  9. addProductModelListTemp.add(tempProductModel);
  10. addProductModelListTemp.get(currentRowIdToInsertImages).setImagePathList(output);
  11. for (int i = 0; i < addProductModelListTemp.size(); i++) {
  12. Timber.e("addProductModelListTemp index " + i);
  13. for (int k = 0; k < addProductModelListTemp.get(i).getImagePathList().size(); k++) {
  14. Timber.e("addProductModelListTemp.get(i).getImagePathList() index " + k + " contains " + addProductModelListTemp.get(i).getImagePathList().get(k));
  15. }
  16. }
  17. }
  18. }).execute(imageURIList);
  19.  
  20. public AddProductModel(String size, String color, String quantity, List<Uri> imagePath) {
  21.  
  22. this.size = size;
  23. this.color = color;
  24. this.quantity = quantity;
  25. this.imagePath = imagePath;
  26. }
  27.  
  28. public void setImagePathList(List<Uri> imagePath) {
  29. if (this.imagePath.isEmpty()) {
  30. Timber.e("Image Path List not exists, adding");
  31. this.imagePath = imagePath;
  32. } else {
  33. Timber.e("Image Path List exists, appending");
  34. this.imagePath.addAll(this.imagePath.size(), imagePath);
  35. }
  36. } // Getter setter not attached for clarity}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement