When i do a back action it returns to the top of the list

when i do a back action it returns to the top of the list

hello, help me set it up right go back. in my application on the main screen there are a lot of photos from different authors, when I go to a specific photo and want to go back to the list, I click back (back action) takes me back but to the top of the list and I have to scroll again to the desired photo and further, this is bad , how can I set it up so that when I go to the photo and press back, I return to the sheet where I made my choice, please tell me who knows

I still think that there are people who know how to solve this

I wrote a post about this last year.

Check it out: