code cleaninng
This commit is contained in:
parent
7f0f207e7e
commit
17abdd3379
2 changed files with 2 additions and 5 deletions
|
@ -178,6 +178,7 @@ public class EditProfileFragment extends BaseOsmAndFragment {
|
|||
isDataChanged = true;
|
||||
startIconId = profile.parent.getSmallIconDark();
|
||||
profile.iconId = startIconId;
|
||||
profile.iconStringName = profile.parent.getIconName();
|
||||
} else if (isUserProfile) {
|
||||
title = profile.userProfileTitle;
|
||||
profileNameEt.setText(title);
|
||||
|
|
|
@ -103,12 +103,8 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter<ProfileViewHolder>
|
|||
: ApplicationMode.getIconResFromName(app, item.getIconName(), app.getPackageName());
|
||||
|
||||
if (iconRes == 0 || iconRes == -1) {
|
||||
if (item.getParent() != null) {
|
||||
iconRes = item.getParent().getSmallIconDark();
|
||||
} else {
|
||||
iconRes = R.drawable.ic_action_world_globe;
|
||||
}
|
||||
}
|
||||
|
||||
if (selectedItems.contains(item)) {
|
||||
holder.aSwitch.setChecked(true);
|
||||
|
|
Loading…
Reference in a new issue