Open
Conversation
Author
|
I am facing some problem when i toggle the direction filter |
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
Author
|
@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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creating some widget for the app using glance