Revert "Fix crash of starting private app info pages for LS"

This reverts commit f9fabeae1c.

Reason for revert: Java crash when trying to open Settings on secondary user

Bug: 336697633
Bug: 337044085
Change-Id: I0c6793ce2a28294c093c9786cecddd19bd643141
This commit is contained in:
Jason Chiu
2024-04-26 09:17:45 +00:00
committed by Android (Google) Code Review
parent f9fabeae1c
commit a09d2650b9

View File

@@ -204,7 +204,7 @@ public class SettingsHomepageActivity extends FragmentActivity implements
if (mIsEmbeddingActivityEnabled) {
final UserManager um = getSystemService(UserManager.class);
final UserInfo userInfo = um.getUserInfo(getUserId());
if (!userInfo.isMain()) {
if (userInfo.isManagedProfile()) {
final Intent intent = new Intent(getIntent())
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
.putExtra(EXTRA_USER_HANDLE, getUser())