Eliminate duplicated code for creating circled user icons in Settings.
Use Utils.getUserIcon instead. Change-Id: Id653f8c89ac041e925464c88bbc0c7c43d3ce632
This commit is contained in:
@@ -327,16 +327,6 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
|
||||
return getPreferenceScreen();
|
||||
}
|
||||
|
||||
Drawable getCircularUserIcon() {
|
||||
Bitmap userIcon = mUserManager.getUserIcon(mUser.getIdentifier());
|
||||
if (userIcon == null) {
|
||||
return null;
|
||||
}
|
||||
CircleFramedDrawable circularIcon =
|
||||
CircleFramedDrawable.getInstance(this.getActivity(), userIcon);
|
||||
return circularIcon;
|
||||
}
|
||||
|
||||
protected void clearSelectedApps() {
|
||||
mSelectedPackages.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user