App will never login if network unavailable when app starts
bug
### Checklist - Required
- [x] I am able to reproduce the bug with the [latest debug version](https://github.com/MetrolistGroup/Metrolist/actions/workflows/build.yml?query=branch%3Amain).
- [x] I've checked that there is NO open or closed issue about this bug. (Duplicate issues will be closed immediately without response)
- [x] This issue contains only ONE bug. PLEASE check pinned issues before opening a new one.
- [x] The title of this issue accurately describes the bug.
- [x] The entire issue report is written/translated in English.
### Steps to reproduce the bug
1. Ensure there's no network access (disconnect wifi or use airplane mode if needed)
2. Open the app. It will use Guest.
3. After the app loads, connect to wifi
### Expected behavior
The app will use the existing logged-in token (i.e. it will be logged in).
### Actual behavior
The app will not login after network access resumes and will continue using Guest account. If I then kill and reopen Metrolist, it will login.
### Screenshots/Screen recordings
_No response_
### Logs
None
### Metrolist version
13.6.0
### Android version
Android 15 & Android 10
### Additional information
I use Metrolist in my car on an Android head unit. I have it setup split screen with my navigation, so it opens when the car turns on. However, it takes 30 seconds or so for the wifi to connect to the hotspot from my phone. So Metrolist _always_ opens without internet access. I have to wait till it connects, then close and reopen Metrolist.
Android head unit is Android 10. I tested on my Android 15 phone and it's the same.
0 条评论