Skip to content

Conversation

@borongc
Copy link
Contributor

@borongc borongc commented Feb 11, 2026

Previously, the CobaltUsingAndroidOverlay feature was unconditionally
enabled. This change moves its activation behind a configurable
Java switch.

This allows for experimental rollout and A/B testing of the
AndroidOverlay functionality, providing better control over its
deployment and evaluation on various Android devices for punch-out
video.

Issue: 476418731

@github-actions
Copy link

🤖 Gemini Suggested Commit Message


android: Add experiment for AndroidOverlay

Previously, the CobaltUsingAndroidOverlay feature was unconditionally
enabled. This change moves its activation behind a configurable
Java switch.

This allows for experimental rollout and A/B testing of the
AndroidOverlay functionality, providing better control over its
deployment and evaluation on various Android devices for punch-out
video.

Bug: 476418731

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an experiment flag for enabling AndroidOverlay. The changes remove the hardcoded default enablement and add logic to enable it via a new EnableAndroidOverlay Java switch.

My review found a critical issue in JavaSwitches.java where a typo in a constant name would lead to a compilation failure. I've provided a suggestion to fix it and align the code with the style guide.

@borongc borongc force-pushed the android_overlay_switch branch from b581085 to e897627 Compare February 11, 2026 18:37
@borongc borongc force-pushed the android_overlay_switch branch from e897627 to f551b58 Compare February 11, 2026 18:58
@johnxwork johnxwork enabled auto-merge (squash) February 11, 2026 23:49
@johnxwork johnxwork merged commit 8c3aaee into youtube:26.android Feb 11, 2026
324 of 328 checks passed
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.

2 participants