Android back button doesn't always work as expected
Checklist
- [X] I can reproduce the bug with the latest version given here.
- [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
Affected app version
1.0.1
Affected Android/Custom ROM version
Android 14
Affected device model
Pixel 8
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
Steps to reproduce:
- Open app and navigate to a conversation.
- Leave the app, but also leave it open. Pressing the android home button works for me.
- Leave the phone charging overnight. (Or some other way to cause android to cache the app to storage instead of ram)
- Open the app. It will still be in that same conversstion view(as expected).
- Press the back button.
Expected behavior
The back button should always navigate to the conversation screen from a specific conversation view, instead of only mostly doing that.
Actual behavior
Pressing the android back button will close the app, instead of navigating to the conversation menu screen. I have to reopen the app after that in order to get to the conversation screen.
Screenshots/Screen recordings
No response
Additional information
The bug only seems to show up if the app has been cached by android while open in a conversation view.
There is no issue when i leave the conversation menu open and leave the app alone for a couple hours.
This is also happening in v1.2.1 with SMS opened from notifications. I did not try out OP's instructions to reproduce the bug. Instead, I see Messages "quitting" after pressing the back button when an SMS was opened from the Android notifications. If users want to leave Messages, they can press the home button. Pressing the back button from viewing a message, I'd expect the app to show the main screen with all conversations.
If you think this is a different bug leading to the same outcome, I can open a new bug report.