Merge "Initialize workProfileUserHandle before initial check for work tabs" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b98da91c63
@@ -358,6 +358,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
: isHttpSchemeAndViewAction(getTargetIntent());
|
: isHttpSchemeAndViewAction(getTargetIntent());
|
||||||
|
|
||||||
mSupportsAlwaysUseOption = supportsAlwaysUseOption;
|
mSupportsAlwaysUseOption = supportsAlwaysUseOption;
|
||||||
|
mWorkProfileUserHandle = fetchWorkProfileUserProfile();
|
||||||
|
|
||||||
// The last argument of createResolverListAdapter is whether to do special handling
|
// The last argument of createResolverListAdapter is whether to do special handling
|
||||||
// of the last used choice to highlight it in the list. We need to always
|
// of the last used choice to highlight it in the list. We need to always
|
||||||
@@ -366,7 +367,6 @@ public class ResolverActivity extends Activity implements
|
|||||||
// to handle. We also turn it off when the work tab is shown to simplify the UX.
|
// to handle. We also turn it off when the work tab is shown to simplify the UX.
|
||||||
boolean filterLastUsed = mSupportsAlwaysUseOption && !isVoiceInteraction()
|
boolean filterLastUsed = mSupportsAlwaysUseOption && !isVoiceInteraction()
|
||||||
&& !shouldShowTabs();
|
&& !shouldShowTabs();
|
||||||
mWorkProfileUserHandle = fetchWorkProfileUserProfile();
|
|
||||||
mMultiProfilePagerAdapter = createMultiProfilePagerAdapter(initialIntents, rList, filterLastUsed);
|
mMultiProfilePagerAdapter = createMultiProfilePagerAdapter(initialIntents, rList, filterLastUsed);
|
||||||
if (configureContentView()) {
|
if (configureContentView()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user