Skip to content

Edge to edge fix limited to brokered only scenarios, Fixes AB#3293334 #2690

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

somalaya
Copy link
Contributor

@somalaya somalaya commented Jun 26, 2025

The fix I did in this PR is flighted #2665
But we cannot control flighting when no broker is installed. I have checked with OneAuth team and they are ok with just turning this fix ON for brokered flow since that is the majority case.

Fix : Simply limit the fix to brokered flow.

Fixes AB#3293334

@Copilot Copilot AI review requested due to automatic review settings June 26, 2025 18:11
@somalaya somalaya requested a review from a team as a code owner June 26, 2025 18:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restricts the edge-to-edge layout fix to brokered scenarios by checking if the app is running in a broker process before applying the flighted behavior.

  • Imported ProcessUtil.
  • Updated initializeContentView to only enable edge-to-edge handling when running in a broker process and the flight is enabled.
Comments suppressed due to low confidence (2)

common/src/main/java/com/microsoft/identity/common/internal/ui/DualScreenActivity.java:66

  • [nitpick] Consider adding a comment above this conditional to explain why edge-to-edge handling is limited to broker processes for better future maintainability.
        if (ProcessUtil.isBrokerProcess(getApplicationContext()) && CommonFlightsManager.INSTANCE.getFlightsProvider().isFlightEnabled(CommonFlight.ENABLE_HANDLING_FOR_EDGE_TO_EDGE)) {

common/src/main/java/com/microsoft/identity/common/internal/ui/DualScreenActivity.java:66

  • Add unit or integration tests covering the non-broker scenario to ensure the dual-screen layout behavior remains correct when the fix isn’t applied.
        if (ProcessUtil.isBrokerProcess(getApplicationContext()) && CommonFlightsManager.INSTANCE.getFlightsProvider().isFlightEnabled(CommonFlight.ENABLE_HANDLING_FOR_EDGE_TO_EDGE)) {

Copy link

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@somalaya somalaya changed the title Edge to edge fix limited to brokered only scenarios Edge to edge fix limited to brokered only scenarios, Fixes AB#3293334 Jun 27, 2025
Copy link

✅ Work item link check complete. Description contains link AB#3293334 to an Azure Boards work item.

@somalaya somalaya added the No-Changelog This Pull-Request has no associated changelog entry. label Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-Changelog This Pull-Request has no associated changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants