in AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/AppRestrictionSchemaFragment.java [193:207]
private void updateApprovals(RestrictionEntry entry, Bundle restrictions) {
String[] approvals;
if (restrictions == null || !restrictions.containsKey(KEY_APPROVALS)) {
approvals = entry.getAllSelectedStrings();
} else {
approvals = restrictions.getStringArray(KEY_APPROVALS);
}
String text;
if (approvals == null || approvals.length == 0) {
text = getString(R.string.none);
} else {
text = TextUtils.join(", ", approvals);
}
mTextApprovals.setText(getString(R.string.approvals_you_have, text));
}