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:
Amith Yamasani
2014-04-30 10:58:09 -07:00
parent 46900881d6
commit a97089d389

View File

@@ -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);
} }