Merge "Fix focus on wrong tab"

This commit is contained in:
TreeHugger Robot
2019-12-20 05:55:15 +00:00
committed by Android (Google) Code Review
3 changed files with 124 additions and 112 deletions

View File

@@ -150,7 +150,7 @@ public abstract class ProfileSelectFragment extends DashboardFragment {
if (bundle != null) {
final int extraTab = bundle.getInt(SettingsActivity.EXTRA_SHOW_FRAGMENT_TAB, -1);
if (extraTab != -1) {
return WORK_TAB;
return extraTab;
}
final int userId = bundle.getInt(EXTRA_USER_ID, UserHandle.SYSTEM.getIdentifier());
final boolean isWorkProfile = UserManager.get(activity).isManagedProfile(userId);