Show sharesheet with 1 personal app and >0 work apps with WP off
Previously we would autolaunch in this case, as getResolversForIntentAsUserInternal didn't return any apps for the work profile when it's off. This change adds the MATCH_DIRECT_BOOT_AWARE and MATCH_DIRECT_BOOT_UNAWARE flags to the PackageManager#queryIntentActivitiesAsUser call. Test: manual Test: atest ResolverActivityTest Test: atest ChooserActivityTest Fixes: 153338971 Change-Id: Iedf10d54953b94393c78d6357ce7e5216f3ba261
Loading
Please register or sign in to comment