IacobIonut01 / Gallery

Light-weight Media Gallery app for Android made with Jetpack Compose
Apache License 2.0
1.05k stars 57 forks source link

[BUG] App closes the photo on switching screen orientation #350

Closed Snehargho123 closed 4 months ago

Snehargho123 commented 4 months ago

Describe the bug Photos dont switch orientation on the go. I need to open the photo in the orientation I desire to view it in. If I switch orientation while viewing the photo then the app closes the photo and takes me to the all photos list.

To Reproduce Steps to reproduce the behavior:

  1. Open any photo
  2. Switch screen orientation (portrait to landscape in my case
  3. The photo is closed and I am taken to the all photos screen. This time the all photos screen opens with the orientation I switched to. Now keeping this orientation, I have to find and open the photo again

Expected behavior I open and photo in full screen and if I switch screen orientation, the photo should also remain open an switch orientations

Smartphone (please complete the following information):

Additional context This is standard behaviour on any other app be it gallery or something else. Hence I feel like this is a bug. Kindly look into it. It does not seem very complex. I hope it won't take a toll on you to fix it. If you feel like it, please tell me exactly what to do and I shall help you make the changes. Thank you for actively maintaining this beautiful app.

IacobIonut01 commented 4 months ago

Please install the latest version from Github Actions and check again, I've tried on my end and I can't seem to reproduce this bug

Snehargho123 commented 4 months ago

I am very thankful for the reply. I reinstalled the app and it works now. Also opening from the file manager did not work for me at all despite the latest version but the same reinstall that fixed the orientation thing, also fixed the file manager thing. I am closing this issue. Thanks a lot!

Sockolet commented 3 months ago

This is happening to me also. I'm running latest version 21040 from F-Droid. It happened in previous version as well. Mobile is Samsung Galaxy S20 FE, running Android 14 with latest patches.

@IacobIonut01

Melr0k commented 2 months ago

I have the exact same issue, even installing the latest version 2.1.2-21204, with Android 13 on a Motorola edge 40 neo.

EDIT: Now it works again… I don't know how to reproduce this, but if I find it I will probably open a new issue so it will not be left on the closed ones.

ahormann commented 1 month ago

I had the same Issue with 2.1.2. I downgraded to 2.1.1 and that fixed it for now, but maybe it was the reinstalling rather than the Version change. Also Android 14 and a Pixel 7a.

IacobIonut01 commented 1 month ago

I can't seem to reproduce the bug, but I will still try to find some possible causes, if you manage to make a reliable way to reproduce it please let me know