Skip to content

fix: use activity window for status bar icons in dialog fragments - #5704

Open
ibrahim-iqbal wants to merge 1 commit into
Automattic:mainfrom
ibrahim-iqbal:fix/2127-dialog-status-bar-icons
Open

fix: use activity window for status bar icons in dialog fragments#5704
ibrahim-iqbal wants to merge 1 commit into
Automattic:mainfrom
ibrahim-iqbal:fix/2127-dialog-status-bar-icons

Conversation

@ibrahim-iqbal

Copy link
Copy Markdown

Summary

  • BaseDialogFragment.onViewCreated() was calling theme.updateWindowStatusBarIcons() on dialog?.window, but status bar icon appearance is controlled by the activity's window, not the dialog's overlay window
  • Changed to use activity?.window for status bar icons, matching how BaseAppCompatDialogFragment already handles this correctly
  • Navigation bar color still uses the dialog window (controls the dialog's own nav bar)

Fixes #2127

Test plan

  • Use a light theme (Light or Rose)
  • Open the full-screen player, then open Up Next — status bar icons should be dark/visible
  • Open Cloud File Bookmarks dialog — status bar icons should be dark/visible
  • Switch to a dark theme and verify status bar icons are light/visible on the same dialogs
  • Dismiss each dialog and verify status bar icons restore to the correct color

BaseDialogFragment was setting status bar icon appearance on the
dialog's own window, which has no effect on the actual status bar.
Use the activity's window instead, matching BaseAppCompatDialogFragment.

Fixes Automattic#2127
@ibrahim-iqbal
ibrahim-iqbal requested a review from a team as a code owner August 6, 2026 04:57
@ibrahim-iqbal
ibrahim-iqbal requested review from sztomek and removed request for a team August 6, 2026 04:57
@CLAassistant

CLAassistant commented Aug 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Status bar icon color is not set correctly for light-themed dialog fragments

2 participants