Skip to content

A diary-only phone's widget, Today, Week and alerts show nothing from the diary #142

Open

Description

@lumenpearson

What is missing. A phone signed in to its own diary without a class (the autonomous way in) gets the diary as its home, but the Glance widget, Today, Week and the lesson alerts are fed only from a class's timetable. For that phone they show «введите код класса» and nothing else.

Why it was left. Feeding them means a diary-backed source for TimetableRepository, a Room cache shaped like the timetable, and background refreshes that would count as the student's activity and keep a session alive for ever. The batch that added autonomous mode chose the smaller, safer shell and says what it costs.

The rule to keep when it is done. Diary lessons with no times must not borrow another day's bell times. A lesson without times goes into SchoolDay.unplaced, and a day whose every lesson is untimed reads as «нет данных», never as an empty school day.

What it costs until then. A student who only looks at the widget sees nothing from the diary, and the session is purged 30 days after the app was last opened, because opening the app is the only activity that counts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions