Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b99f864d authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix crash in Settings for secondary users

Bug: 7328485

Change-Id: If766d1f28f48fb1853ea64c2b2a9294df9bcf22b
parent 84b90d53
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -458,7 +458,8 @@ public class Settings extends PreferenceActivity
                }
            }

            if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
            if (target.get(i) == header
                    && UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
                    && !ArrayUtils.contains(SETTINGS_FOR_RESTRICTED, id)) {
                target.remove(i);
            }