Add personal and work tabs to share sheet and intent picker.
Currently both tabs are disabled under the ENABLE_TABBED_VIEW flag until other issues are fixed. Things this CL does: - Add personal and work tab if there is a work profile on device - Load the sharesheet/intent resolver targets when we open the relative tab, and only load it the first time - Always first show the tab for the current profile, e.g. for work profile we show the work tab first - Disable ViewPager manual swiping - Remove resolver list horizontal dividers - Always show the current profile's last opened app recommendation Tests are in the follow-up CL. Bug: 142537267 Bug: 142538125 Test: atest com.android.internal.app.ChooserActivityTest Test: atest com.android.internal.app.ResolverActivityTest Test: manually share with personal and work apps from both the personal and work profiles. Change-Id: Ie02c6b1d46b30facc9f1b04691cbcdd4e06b0fa9
Loading
Please register or sign in to comment