Skip to content

home-widget#16

Open
whyKVD wants to merge 43 commits intoStypox:masterfrom
whyKVD:home-widget
Open

home-widget#16
whyKVD wants to merge 43 commits intoStypox:masterfrom
whyKVD:home-widget

Conversation

@whyKVD
Copy link
Copy Markdown

@whyKVD whyKVD commented Mar 8, 2026

Creating some widget for the app using glance

@whyKVD
Copy link
Copy Markdown
Author

whyKVD commented Mar 8, 2026

I am facing some problem when i toggle the direction filter

whyKVD added 13 commits March 9, 2026 11:41
Changed the minSdk from 21 to 23 because of library compatibility
Created a WidgetState class and modified some models to make them serializable and also created some utils to serialize ZoneDateTime and OffsetDateTime classes
Created a worker to update the widget every 15 minutes, renamed the classes to something a bit more self-explanatory and started using the WidgetState class
Modified the manifest and the application for the worker
Modified the activity and the actions to work with the WidgetState class
Deleted the object WidgetState.Loading , changed how the prev and next button behave to the disable state from disappearing to fade and some code refactoring here and there
@whyKVD
Copy link
Copy Markdown
Author

whyKVD commented Mar 25, 2026

@Stypox do you think that it is more clean to make the user navigate in the widget as if it is in the app so make a widget in which it can navigate through stops or line or is it better to divide them in two separate widget? and also if you have any question or improvement to suggest for the code i am more than happy to know

whyKVD added 15 commits March 29, 2026 20:21
Added a menu icon to the widget to open the configuration menu
Created a view also for the stops in the widget with his own state
Created a new action to switch from line to stop view and also updated the old actions to react at different states, Also added a new entry point to work with the stop state
Now the Worker update the widgets only if is passed 15 minutes from referenceDateTime update
Moved LineSelectionScreenWidget to a separate file and created a destination for the screen so i can work on creating a drawer like the one in MainActivity to enable to configure also the widget for the stops and not only the lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant