Skip to content

fix: premiere dates, every subscribe bell, Shorts on channel Home, force dark, and a swipe-away switch - #1521

Merged
A-EDev merged 9 commits into
mainfrom
fix/premiere-date-bell-shorts-home-force-dark
Oct 28, 2026
Merged

A-EDev merged 9 commits into
mainfrom
fix/premiere-date-bell-shorts-home-force-dark

Conversation

@A-EDev

@A-EDev A-EDev commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Description: premieres and past streams get no figures from YouTube, so Flow builds its own. The date card now reads "Oct 25" over "2026" instead of a cut-off "Premiered 2 days ago" under "Uploaded", and the views card shows the exact count.
  • Subscribe bell: the bell now works in search, related channels, the collaborators sheet, the video menu and Shorts. A button with no bell handler shows plain "Subscribed" and opens its menu instead of drawing a dead bell.
  • Turning a bell on while alerts can't arrive (system blocks Flow, or Notifications / New videos is off) shows "Alerts for new videos are off" with a Turn on action.
  • With Show Shorts off, Shorts shelves and single reels are removed from a channel's Home and from Explore shelves and grids; a shelf left empty is dropped. Shorts tab on channels still keeps only the tab.
  • The app theme and the main window opt out of force dark, so MIUI's dark mode no longer darkens Flow's light theme.
  • New switch under Player & playback: Keep playing after closing Flow (on by default, today's behaviour). Off makes a swipe from recents stop video and pause music.
  • The music service no longer looks up lyrics online for local songs.

Related issue

Closes #1466
Closes #1467
Closes #1507
Closes #1517
Closes #1468
Closes #1464

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug: passed
  • ./gradlew :app:testGithubDebugUnitTest: passed, 4561 tests, 0 failures
  • I ran any additional flavor-specific build or test tasks affected by this change: ./gradlew :app:compileFossDebugKotlin and ./gradlew ktlintCheck passed, python3 .github/scripts/nightly_notes.py --check passed
  • I manually tested the affected behavior on an Android device or emulator.

Test device and Android version: Xiaomi 2311DRK48G, HyperOS, Android 16

Screenshots or recordings

Risk and compatibility

  • One new DataStore preference (keep_playing_after_swipe, default on). No Room schema change.

  • The swipe setting is read from the process-scoped playback snapshot, because onTaskRemoved can run after the activity is gone. A cold start with no activity reads the default, on.

  • No new network requests. The bell state is one derived flow over the subscription store, collected with WhileSubscribed(5_000).

  • forceDarkAllowed=false only affects devices that apply force dark; Flow's own dark themes are drawn by Compose and are unchanged.

  • The change does not introduce secrets, private data, or unexpected telemetry.

  • New user-facing text uses Android string resources.

  • Dependency and lockfile changes are intentional and limited to this PR.

  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.

  • Breaking changes and upgrade steps are clearly documented.

Copilot AI balanced review requested due to automatic review settings October 28, 2026 19:01
@github-actions github-actions Bot added documentation Improvements or additions to documentation player Video and audio playback ui Compose UI, theming, or Material 3 surfaces labels Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The notification warning can appear behind an open bottom sheet, making its action inaccessible, and fails to detect a blocked New videos notification channel.

2 open issues
What changed in this PR

This PR addresses description metadata, subscription controls, Shorts visibility, and theme issues across Flow. It also adds a playback-on-close preference and skips online lyrics prefetching for local songs.

Changes:

  • Formats fallback premiere and stream dates, connects subscription bells across surfaces, and adds blocked-alert warnings.
  • Filters disabled Shorts from channel Home and Explore, and opts out of system force dark.
  • Adds configurable swipe-away playback behavior, focused tests, and nightly release notes.
File Description
app/​src/​test/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​SubscriptionBellTest.kt Tests bell-state filtering and alert-block decisions.
app/​src/​test/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​DescriptionFactoidsTest.kt Tests absolute and relative description dates.
app/​src/​test/​java/​io/​github/​aedev/​flow/​service/​TaskRemovalPolicyTest.kt Tests stopping playback when the switch is off.
app/​src/​test/​java/​io/​github/​aedev/​flow/​player/​LifecyclePlaybackPreferencesTest.kt Tests the cold-start swipe preference default.
app/​src/​test/​java/​io/​github/​aedev/​flow/​data/​shorts/​FeedShelfShortsTest.kt Tests Shorts filtering and empty-shelf handling.
app/​src/​test/​java/​io/​github/​aedev/​flow/​data/​local/​DevicePreferencesSplitTest.kt Updates the expected profile preference count.
app/​src/​main/​res/​values/​themes.xml Disables platform force dark.
app/​src/​main/​res/​values/​strings.xml Adds date labels, alert text, and playback-setting strings.
app/​src/​main/​java/​io/​github/​aedev/​flow/​utils/​DateDisplay.kt Extracts reusable stream and premiere prefix removal.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​settings/​taste/​DiscoverChannelsViewModel.kt Reuses notifying-channel ID extraction.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​settings/​playback/​PlaybackSettingsViewModel.kt Exposes and saves the swipe-away preference.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​settings/​playback/​PlaybackSections.kt Displays the new playback switch.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​settings/​index/​PlaybackIndex.kt Registers the setting in the settings index.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​search/​SearchResultsBody.kt Connects search results to shared bell state.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​channel/​ChannelViewModel.kt Adds bell controls and filters Shorts from sections.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​channel/​ChannelScreen.kt Passes notification state and callbacks into channel content.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​channel/​ChannelContent.kt Wires related-channel bells and corrects Home loading detection.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​categories/​CategoriesViewModel.kt Filters Shorts from Explore shelves and paging data.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​screens/​categories/​CategoriesScreen.kt Displays filtered Explore shelves.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​FlowApp.kt Mounts the shared bell-alert presenter.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shorts/​ShortsReelPage.kt Connects Shorts to shared notification state.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shorts/​ShortsMetadataOverlay.kt Passes bell controls to the subscribe button.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​SubscriptionBell.kt Adds shared bell state and blocked-alert recovery.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​quickactions/​VideoQuickActionsSheet.kt Connects the video-menu notification bell.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​FlowSubscribeButton.kt Opens the menu when no bell handler exists.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​FlowDescriptionBottomSheet.kt Delegates fallback statistics to the new helper.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​DescriptionFactoids.kt Formats fallback dates and exact view counts.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​shared/​CollaboratorsBottomSheet.kt Connects collaborator notification bells.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​search/​SearchResults.kt Adds notification state and actions to channel results.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​search/​SearchChannelHeroCard.kt Forwards bell controls through channel-card layouts.
app/​src/​main/​java/​io/​github/​aedev/​flow/​ui/​components/​channel/​ChannelCards.kt Adds bell controls to channel rows.
app/​src/​main/​java/​io/​github/​aedev/​flow/​service/​VideoPlayerService.kt Applies the swipe-away preference to video playback.
app/​src/​main/​java/​io/​github/​aedev/​flow/​service/​TaskRemovalPolicy.kt Includes the preference in service-retention decisions.
app/​src/​main/​java/​io/​github/​aedev/​flow/​service/​PlaybackServiceEntryPoint.kt Exposes playback preferences to the video service.
app/​src/​main/​java/​io/​github/​aedev/​flow/​service/​Media3MusicService.kt Applies swipe behavior and skips local-song lyrics prefetching.
app/​src/​main/​java/​io/​github/​aedev/​flow/​player/​LifecyclePlaybackPreferences.kt Adds the swipe preference to the playback snapshot.
app/​src/​main/​java/​io/​github/​aedev/​flow/​MainActivity.kt Disables force dark on the window’s decor view.
app/​src/​main/​java/​io/​github/​aedev/​flow/​data/​shorts/​FeedShelfShorts.kt Adds shared Shorts detection and shelf filtering.
app/​src/​main/​java/​io/​github/​aedev/​flow/​data/​local/​SubscriptionRepository.kt Exposes notifying IDs and bell-enabled events.
app/​src/​main/​java/​io/​github/​aedev/​flow/​data/​local/​PlayerPreferences.kt Persists the default-on swipe-away preference.
.github/​nightly-notes/​2026-10-28-fix-premiere-date-bell-shorts-home-force-dark.md Adds user-facing notes for the changes.

Review effort: Balanced

internal val blockedBells: Flow<BellAlertBlock> =
subscriptionRepository.notificationsTurnedOn.mapNotNull {
bellAlertBlock(
systemAllows = NotificationManagerCompat.from(appContext).areNotificationsEnabled(),
Comment on lines +120 to +121
viewModel.blockedBells.collect { block ->
val result = snackbarHostState.showSnackbar(message, action, duration = SnackbarDuration.Long)
@A-EDev
A-EDev merged commit 7e301c4 into main Oct 28, 2026
10 checks passed
@A-EDev
A-EDev deleted the fix/premiere-date-bell-shorts-home-force-dark branch October 29, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation player Video and audio playback ui Compose UI, theming, or Material 3 surfaces

Projects

None yet

2 participants