Locked out of ios app unless locked pdf is unlocked
**General information**
Zotero Version: 1.0.26 build 230
OS: IOS 17.3.1
Phone: iPhone SE 2
**Steps to reprouduce**
1. Open a password locked pdf, unlock it
2. Tap on the pdf so that the toolbar is hidden
3. Close app then kill the app by swiping up in the app switcher
4. Re-open app
**Result**
Screenshot attached below is the screen that shows up in the app. It's the screenshot of the entire screen, not a cropped image. Unless you unlock the pdf, there is no way to close the file or go back to the library view. I tried tapping, swiping, typing wrong passwords, etc. to try to close the file to no avail.
I would expect the toolbar with the '< Back' button to show up.
**Thoughts**
It's fine if you just closed the app and reopened it as outlined in the reproduce steps, but the problem is when you've returned to the app after several days or weeks of not using it. If you've forgotten the password, or even if you do know the password, you can't figure out what file is open in the app (the file name isn't shown), you cannot use the app. That's what happened to me, although I managed to remember the password.
**Screenshot**
https://s3.amazonaws.com/zotero.org/images/forums/u7611159/1hnrjjq15wpq71ou6d7f.jpg
Zotero Version: 1.0.26 build 230
OS: IOS 17.3.1
Phone: iPhone SE 2
**Steps to reprouduce**
1. Open a password locked pdf, unlock it
2. Tap on the pdf so that the toolbar is hidden
3. Close app then kill the app by swiping up in the app switcher
4. Re-open app
**Result**
Screenshot attached below is the screen that shows up in the app. It's the screenshot of the entire screen, not a cropped image. Unless you unlock the pdf, there is no way to close the file or go back to the library view. I tried tapping, swiping, typing wrong passwords, etc. to try to close the file to no avail.
I would expect the toolbar with the '< Back' button to show up.
**Thoughts**
It's fine if you just closed the app and reopened it as outlined in the reproduce steps, but the problem is when you've returned to the app after several days or weeks of not using it. If you've forgotten the password, or even if you do know the password, you can't figure out what file is open in the app (the file name isn't shown), you cannot use the app. That's what happened to me, although I managed to remember the password.
**Screenshot**
https://s3.amazonaws.com/zotero.org/images/forums/u7611159/1hnrjjq15wpq71ou6d7f.jpg
https://github.com/zotero/zotero-ios/blob/ec7dbc1a834fbd6f23ebdd1e1f29824f803b7d32/Zotero/Scenes/Detail/PDF/Views/PDFDocumentViewController.swift#L585
When app is closed, the current state of being in the locked pdf, and toolbar being hidden is saved. And when app is reopened and state restored, the toolbar state is set to hidden, and no user interaction cannot make the toolbar show up.
I believe something simple like setting toolbar state to shown when view is set up should fix the issue.