woheller69 / omweather

GNU General Public License v3.0
334 stars 14 forks source link

GUI freezes when opened #65

Closed niccokunzmann closed 9 months ago

niccokunzmann commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

When I click on the wheather widget, the GUI opens to show more detail. Either immediately or after a few seconds, the GUI freezes and cannot be used any more.

How to Reproduce Steps to reproduce the behavior:

  1. Go to home screen
  2. Click on the widget
  3. Scroll around
  4. After a short while the GUI freezes

Expected behavior A clear and concise description of what you expected to happen.

I would like the GUI to be responsive

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

My Internet connection is very slow. The freez is sometimes long, sometimes very short but there.

woheller69 commented 9 months ago

probably your phone is too slow. There is a lot of data to be processed. Try reducing the number of forecast days

niccokunzmann commented 9 months ago

The processing could happen outside of the GUI.

woheller69 commented 9 months ago

I moved the httpRequest and data processing to separate threads. Please try if that works better for you and let me know.

Uninstall Remove .zip and install app-release.apk.zip

woheller69 commented 9 months ago

I tried it on a slow device and am not convinced. It is different but not better. So I will not make this change. The best solution on slow devices is probably using the widget. Then new data processing happens in background and not when opening the app.

woheller69 commented 9 months ago

Should be a bit faster in next release V2.4. According to Open-Meteo API changes there is less data to evaluate