camera: Fix wrong file uri sent in intent.
Description
Delete option after photo taken was not working properly because of wrong uri passed
Screenshots
Technical details
Changed to use uri passed before only to be used if image is not accessible at all.
Tests
- Download apk from pipeline
- Clear apps and open camera
- Take a photo
- Take preview
- Check if you are able to delete photo
- Go back and try tapping preview again and check if its still possible to delete
Issues
10 commandments of code reviews
Edited by Mohammed Althaf Thayyil