QuantumBadger / RedReader

An unofficial open source Android app for Reddit.
GNU General Public License v3.0
1.96k stars 482 forks source link

The page will load infinitely after the network type changes #749

Open sjl872964789 opened 4 years ago

sjl872964789 commented 4 years ago

Describe the bug The page will load infinitely after the network type changes

To Reproduce Steps to reproduce the behavior:

  1. Install and open RedReader
  2. Click "BE ANONYMOUS"
  3. Click "askreddit"
  4. back
  5. Switch the network from WiFi to data and back to WiFi
  6. Click "askreddit"
  7. Page infinite load

Expected behavior The page can be loaded normally

Smartphone (please complete the following information):

Record record

tingsu commented 4 years ago

Similar issue here. Any update?

QuantumBadger commented 4 years ago

Thanks for the report. Does the page load correctly after you refresh?

tingsu commented 4 years ago

Thanks for your note. The issue is: the page is infinitely loading after the network changes ...

QuantumBadger commented 4 years ago

I know -- I'm asking whether, if you press refresh after encountering the issue, does the page load normally after that?

sjl872964789 commented 4 years ago

Thank you for your quick reply. I tried it just now. It is true that it can be loaded normally after clicking the refresh button. However, there are still some problems. When I re-enter a page, I wait for the interface to finish loading instead of pressing the refresh button. Other users may not realize that they can stop infinitely loading of new pages by clicking the refresh button.

QuantumBadger commented 4 years ago

I've tried reproducing this locally but haven't seen the issue. I have noticed a related issue though, which is that the subreddit details don't seem to get cached, and going to a subreddit with the network disabled results in no dark grey toolbar with the subreddit details at the top. This could be related, as the posts themselves aren't downloaded until the subreddit details request is finished.

In your screenshot I notice a "key" icon in the status bar, I assume that means you're using a VPN? That may be related to the issue.

sjl872964789 commented 4 years ago

Thanks for your kind reply. I didn't use VPN when I first found out this problem, but my simulator did record video with VPN on. What do you think is the reason for the fact that the subreddit details are not cached?

sjl872964789 commented 4 years ago

By the way, did you try to reproduce on Android 8.0, it may be related to the system level