I'm taking a picture, saving it as a file and displaying it as you can see the main imageView
, then I use :
val filteredImage = bitmap.copy(Bitmap.Config.ARGB_8888,true)
I use this filteredImage
variable to apply a filter on the image since it's now mutable.
the problem is: as you can see in the small images bellow the orientation changes and I searched a lot but I couldn't find any solution.
When I replace the main ImageView
's bitmap with the copied one I got this :