Skip to content

Commit

Permalink
feat: confirmation added when setting a photo from photos tab (#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysharma01 committed Mar 8, 2021
1 parent 8caf7f1 commit ae3498f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -108,6 +108,9 @@ class ProductPhotosAdapter(
R.id.set_front_image -> product.getImageStringKey(ProductImageField.FRONT)
else -> product.getImageStringKey(ProductImageField.OTHER)
}
if (snackView == null) Toast.makeText(context, context.getString(R.string.changes_saved), Toast.LENGTH_SHORT).show()
else Snackbar.make(snackView, R.string.changes_saved, Snackbar.LENGTH_SHORT).show()

openFoodAPIClient.editImage(product.code, imgMap)
.subscribe { response -> displaySetImageName(response) }
.addTo(disp)
Expand Down

0 comments on commit ae3498f

Please sign in to comment.