Fix crash on settings launch in secondary user.
Bug: 14403545 Make sure the tile wasn't already removed for other reasons. Change-Id: Ia2b5528c01dbfba4919afaf8352e45db9ef345c3
This commit is contained in:
@@ -1075,7 +1075,8 @@ public class SettingsActivity extends Activity
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
|
if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
|
||||||
&& !ArrayUtils.contains(SETTINGS_FOR_RESTRICTED, id)) {
|
&& !ArrayUtils.contains(SETTINGS_FOR_RESTRICTED, id)
|
||||||
|
&& n < category.getTilesCount()) {
|
||||||
category.removeTile(n);
|
category.removeTile(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user