Merge pull request #97 from pml68/dev

Na most #64 issue fix
This commit is contained in:
ReinerRego 2024-03-04 21:47:52 +01:00 committed by GitHub
commit 629e7e92a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,6 +224,10 @@ public class WidgetTimetable extends HomeWidgetProvider {
dbManager.close(); dbManager.close();
// get the date of the first lesson
DateTime dt = new DateTime(s.get(retday).getJSONObject(0).getString("Datum"));
retday = dt.getDayOfWeek() - 1;
return retday; return retday;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();