-
Notifications
You must be signed in to change notification settings - Fork 227
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
Up Next History - Show episode details and restore #3797
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in 📱 Mobile by scanning the QR code below to install the corresponding build.
📲 You can test the changes from this Pull Request in 🚗 Automotive by scanning the QR code below to install the corresponding build.
📲 You can test the changes from this Pull Request in ⌚ Wear by scanning the QR code below to install the corresponding build.
|
447a5c3
to
65defa0
Compare
f372f67
to
46a1c71
Compare
} | ||
UpNextHistoryDetailsPage( | ||
date = date, | ||
onRestoreClick = ::showUpNextRestoreConfirmationDialog, |
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.
Good point! Why add an extra step? Flow updated in fb33c2e
Column { | ||
ThemedTopAppBar( | ||
title = formatDate(date), | ||
bottomShadow = true, |
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.
bottomShadow = true, |
I think it looks more modern to not have the drop shadow. Feel free to ignore if you disagree.
text = formattedDuration, | ||
maxLines = 1, | ||
modifier = Modifier.padding(top = 4.dp), | ||
) |
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.
Updated in 3980833

useEpisodeArtwork = state.useEpisodeArtwork, | ||
) | ||
} | ||
} |
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.
I can't see the bottom episode
I see that bottom insets are added to the view. I can't reproduce it. Maybe padding updates for the top row fixed it.
Screen_recording_20250321_104825.mp4
# Conflicts: # modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/history/HistoryFragment.kt # modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/history/upnext/UpNextHistoryPage.kt # modules/services/localization/src/main/res/values/strings.xml
Description
This displays episodes within "Up Next" history and allows restoring them into the "Up Next" queue.
Testing Instructions
Test.1 Restore "Up Next"
Test.1
in Up Next History - Snapshot and display history entries #3796 to create a snapshot of "Up Next" queueProfile
->Settings
->Restore from local history
->Up Next History
Test.2 Delete entries older than 14 days
UpNextHistoryManagerImpl
private val periodOfSnapshot: Duration = Duration.ofDays(14)
to
private val periodOfSnapshot: Duration = Duration.ofMinutes(1)
Profile
->Settings
->Restore from local history
->Up Next History
Profile
->Settings
->Restore from local history
->Up Next History
Screenshots or Screencast
up_next_history_restore.mp4
Checklist
./gradlew spotlessApply
to automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xml
I have tested any UI changes...