FossifyOrg / Gallery

Browse your memories without any interruptions with this photo and video gallery
https://www.fossify.org
GNU General Public License v3.0
1.35k stars 40 forks source link

Pressing back should go back instead of exiting app if opened via recents after an image is opened from an external app #112

Open vertigo220 opened 5 months ago

vertigo220 commented 5 months ago

Checklist

Feature description

Currently, if opening an image in Gallery from another app, e.g. a file manager, then pressing back, it goes back to the other app, which makes sense. However, the problem is that if the user then decides they want to open Gallery and use it normally, if they do so from the recent apps, it opens to the previously opened image and pressing back just closes Gallery. In this case, when it was switched to vs being opened from another app, it should behave as if it was opened normally from the launcher. As it is, the only way to use it normally at this point is to open it that way, which is annoying and not as fast as simply being able to do so through recents.

Why do you want this feature?

To make it quicker/easier to open and use normally from recents after being opened from another app. The current behavior is frustrating and unexpected, as when opening the app not from another app and pressing back, you would expect it to navigate up a directory, not exit.

Additional information

No response

Aga-C commented 5 months ago

The correct behavior, how other apps do, is to not show itself in Recent Apps after going back from a file opened by another app. Current behavior isn't correct, especially that steps you've described can't be exactly reproduced on every OS - I had a case that launcher showed the app in Recent Apps, but didn't allow opening it back.