-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement watch downloads screen #854
Conversation
Before this change, we were popping back to the screen before the episode screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works great! I just left minor comments.
Feel free to merge it even if you decide not to make any changes.
) { | ||
|
||
val viewModel = hiltViewModel<DownloadsScreenViewModel>() | ||
val state by viewModel.stateFlow.collectAsState() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that collectAsStateWithLifecycle()
is available with the recent lifecycle version bump, wdyt about replacing collectAsState()
with it?
), | ||
maxLines = 2, | ||
) | ||
val shortDate = episode.publishedDate.toLocalizedFormatPattern("dd MMM") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'll confirm with Adam.
Description
This fills in the Downloads screen on the watch app.
In addition, this fixes an issue where after deleting a download, we would navigate back too far instead of just going back to the episode screen that initiated the deletion.
Testing Instructions
In addition to the following testing steps, the UI should also be in good shape as well.
Podcasts
→ Select a podcast → Select an episode → tap on the Download "down arrow" icon).Screenshots or Screencast
Screen.Recording.2023-03-30.at.11.53.42.AM.mov
Checklist
modules/services/localization/src/main/res/values/strings.xml
I have tested any UI changes...