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:
committed by
Android (Google) Code Review
parent
f9fabeae1c
commit
a09d2650b9
@@ -204,7 +204,7 @@ public class SettingsHomepageActivity extends FragmentActivity implements
|
|||||||
if (mIsEmbeddingActivityEnabled) {
|
if (mIsEmbeddingActivityEnabled) {
|
||||||
final UserManager um = getSystemService(UserManager.class);
|
final UserManager um = getSystemService(UserManager.class);
|
||||||
final UserInfo userInfo = um.getUserInfo(getUserId());
|
final UserInfo userInfo = um.getUserInfo(getUserId());
|
||||||
if (!userInfo.isMain()) {
|
if (userInfo.isManagedProfile()) {
|
||||||
final Intent intent = new Intent(getIntent())
|
final Intent intent = new Intent(getIntent())
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
|
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
|
||||||
.putExtra(EXTRA_USER_HANDLE, getUser())
|
.putExtra(EXTRA_USER_HANDLE, getUser())
|
||||||
|
Reference in New Issue
Block a user