Merge "SettingsHomepageActivity: Get profile parent using UM.getProfileParent"

This commit is contained in:
Nikhil Kumar
2023-02-13 09:58:44 +00:00
committed by Android (Google) Code Review

View File

@@ -184,7 +184,7 @@ public class SettingsHomepageActivity extends FragmentActivity implements
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT) .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
.putExtra(EXTRA_USER_HANDLE, getUser()); .putExtra(EXTRA_USER_HANDLE, getUser());
intent.removeFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.removeFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivityAsUser(intent, um.getPrimaryUser().getUserHandle()); startActivityAsUser(intent, um.getProfileParent(userInfo.id).getUserHandle());
finish(); finish();
return; return;
} }