Fix autolaunching.
We autolaunch in the following cases: 1. There is only a personal profile, and it has 1 launchable target 2. There are a personal and work profiles, they have 1 launchable target each, which is the same app. If the app has declared support for cross-profile interaction, we auto launch that app on the current profile. Test: manually tested combinations of test cases with 0/1/2 resolved apps on personal, 0/1/2 resolved apps on work, with enabled/disabled cross-profile intents for both directions (work-personal and personal-work) Bug: 142537267 Bug: 142538125 Bug: 148536212 Test: atest com.android.internal.app.ChooserActivityTest Test: atest com.android.internal.app.ResolverActivityTest Change-Id: I0677bca4dd0ce0412c1c5d386157b94fd87b6706
Loading
Please register or sign in to comment