michael-mosler / Pius-App-for-Android

GNU General Public License v3.0
1 stars 0 forks source link

Widget not working #4

Open Th3Ph4nt0m opened 3 years ago

Th3Ph4nt0m commented 3 years ago

After adding the Widget to the Homescreen:

After opening the App one time:

First, the widget shows the correct structure of the personal Dashboard, but without text. After opening the app one time, the widgets just shows the first entry of the whole grade (Q1).

michael-mosler commented 3 years ago

Could have two causes, imho:

  1. Filter is not working correctly.
  2. Widget is not getting updated (stuck after first load).

We need to check further.

Th3Ph4nt0m commented 3 years ago

If a widget exists and you try to load the dashboard, the app hangs in the debugger without an error message. The widget loads the plan completely differently than the dashboard. The error is definitely in the filter: Only the first item of the whole class is loaded. I think the best and fastest solution is for you @michael-mosler to take care of it yourself, as we are now giving up after many hours.

michael-mosler commented 3 years ago

Ok, will have a look. Never experienced this hang state but haven't debugged widget for ages. May be related to Android 10. First will try in simulator. If I can't make any progress we might need to postpone a fix until we can have a joined debug session on a physical device.