Do not return intent if resolved to browser activity
Intent to switch from web to app should only be provided if intent is resolved to non-browser activity. FLAG_ACTIVITY_REQUIRE_NON_BROWSER was previously used to accomplish this, but this flag only throws an exception when startActivity is called and still returns the browser when Intent#startActivity is called. Changes also resolves activities as a user to assure app does not open in another user's account. Bug: 349695493 Test: Use open in browser button in header menu after clicking on link Flag: com.android.window.flags.enable_desktop_windowing_app_to_web Change-Id: Id3caabd02b98e77406677ac382be1fc32d643ed0
Loading
Please register or sign in to comment