Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new CompressFileAsyncTask(new AsyncResponse() {
- @Override
- public void processFinish(List<Uri> output) {
- for (int i = 0; i < output.size(); i++) {
- Timber.e("Received from Async Class contains => " + output.get(i));
- }
- AddProductModel tempProductModel = new AddProductModel("", "", "", dummyList);
- addProductModelListTemp.add(tempProductModel);
- addProductModelListTemp.get(currentRowIdToInsertImages).setImagePathList(output);
- for (int i = 0; i < addProductModelListTemp.size(); i++) {
- Timber.e("addProductModelListTemp index " + i);
- for (int k = 0; k < addProductModelListTemp.get(i).getImagePathList().size(); k++) {
- Timber.e("addProductModelListTemp.get(i).getImagePathList() index " + k + " contains " + addProductModelListTemp.get(i).getImagePathList().get(k));
- }
- }
- }
- }).execute(imageURIList);
- public AddProductModel(String size, String color, String quantity, List<Uri> imagePath) {
- this.size = size;
- this.color = color;
- this.quantity = quantity;
- this.imagePath = imagePath;
- }
- public void setImagePathList(List<Uri> imagePath) {
- if (this.imagePath.isEmpty()) {
- Timber.e("Image Path List not exists, adding");
- this.imagePath = imagePath;
- } else {
- Timber.e("Image Path List exists, appending");
- this.imagePath.addAll(this.imagePath.size(), imagePath);
- }
- } // Getter setter not attached for clarity}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement