-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No route lines when connectivity returns #138
Comments
Weird. We'll look into that, thanks. Having a lot of problems with losing connectivity at any point in the life cycle. |
This currently what I expect to happen btw.... This has to be done this way otherwise the asynctask gets stuck forever in limbo which will freeze the app otherwise. Any connection timeout has to either be recycled or reloaded and that could possibly break the app (like it already did before I did this) |
I think the only solution is to have a reload button honestly. The reason why the missing route lines issue happened is most likely because the device wasn't receiving internet. |
If there are suggestions we can do within the asynctask, it'd be nice |
Pretty much, it'd be in this line of code where we get the polylines: |
It looks like you can detect when the connectivity state changes. Or maybe have the IOException code in that async task request getting a CONNECTIVITY_ACTION, then respond to it by restarting the async task. Or perhaps the caller of the async task notices it got no data back, and handles restarting it when a CONNECTIVITY_ACTION comes in. |
Route calls should be reduced using #149.... Please report issues if there are problems in 3.2 (beta) |
As expected, in 3.2 it's now harder to make this bug show up. New steps are:
The bus icons then appear, but the route lines and stops do not. Switching to the home screen and back to the app makes them appear. |
I can only fix this atm by pressing "Clear Transit" and then selecting the route lines when internet activity is restored. I will make a new method to close the whole app when there's no internet but for now, I'll leave it as is... |
I'm not sure forcing the app to exit would be better than the current behavior, where I can always manually exit and restart the app. It's happened that the app gets some info I care about, and then while it's trying to retrieve some other info (say, list of stops for a route that might even be off the map now), I move out of range of the Wifi signal and get the message at the bottom that there's a problem. Right now, I can use the data it managed to retrieve successfully. Forcing the app to quit at that point would lose whatever data it's already retrieved. I suggest just leaving it alone, unless you can find a way to have the routes update once the network comes back up. (But it might be OK if "network is now back up" caused the app to reload itself.) |
It'd be very possible to do that, but I would have to re-make the whole "retrieve route lines" task to use volley. It'll be an interesting task.......... |
Don't think the fix will be a fix in this sense... |
Going to reopen this issue. I got this working with bus updates, so I'm going to do the same mechanism for the route lines. |
This is a direct cousin of #267 and requires #196 @sgdoerfler, this will be fixed in release 8.0.0 |
I'm actually going to close this issue now. We can actually improve the app via #301. It won't make it to the 8.0.0 release but the current behavior without fixing this issue is already what we have right now. |
@sgdoerfler, this issue is going to be fixed in #316. Pretty much, all routes are downloaded from the TrueTime API at build time and then saved to the assets folder of the app. I know I had a concern about doing this from the TrueTime license, but it should be ok regardless. |
Released with 8.0.0b3. Thanks @sgdoerfler for bringing up this issue. |
Go to airplane mode, then start the app. You get a map, but no RT info of course. Now leave airplane mode. The bus icons appear on the map after a few seconds, but the route lines do not, even waiting several minutes. Rotating the device to change its orientation makes them come back. 2.95B.
I also saw the missing-route-lines issue once after the device had powered down due to inactivity, but haven't been able to reproduce that case.
The text was updated successfully, but these errors were encountered: