Skip to content

Commit

Permalink
confirmation added when setting a photo
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysharma01 committed Mar 5, 2021
1 parent 59de82b commit de9def8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -108,6 +108,7 @@ class ProductPhotosAdapter(
R.id.set_front_image -> product.getImageStringKey(ProductImageField.FRONT)
else -> product.getImageStringKey(ProductImageField.OTHER)
}
Toast.makeText(context, context.getString(R.string.changes_saved), Toast.LENGTH_LONG).show()
openFoodAPIClient.editImage(product.code, imgMap)
.subscribe { response -> displaySetImageName(response) }
.addTo(disp)
Expand Down

0 comments on commit de9def8

Please sign in to comment.