Show other profile tab if 0 apps in current profile and >1 in the other.
Currently if we have 0 browser apps in work profile and >1 in personal, and we try open a link from the work profile, the personal profile intent resolver is launched. We handle this gracefully by showing the work tab and the no apps found empty state screen, instead of the cross profile intents disabled. Other changes in this commit: - Handle all empty state screens from a single method - All empty state screens are now shown from ResolveActivity#onPostListReady. This was needed to guarantee consistency when showing the header. - Always create the header exactly once for the lifetime of the intent resolver/share sheet. Before it was re-created when swiping back to the initial tab. - Always show the header text when the tabbed view is enabled. Fixes: 148536209 Test: manual Test: atest ChooserActivityTest Test: atest ResolverActivityTest Change-Id: I737f1e8f864ae1108af7ec3ba8a1fa0f10b383b0
Loading
Please register or sign in to comment