code cleaninng

This commit is contained in:
madwasp79 2019-05-28 15:23:49 +03:00
parent 7f0f207e7e
commit 17abdd3379
2 changed files with 2 additions and 5 deletions

View file

@ -178,6 +178,7 @@ public class EditProfileFragment extends BaseOsmAndFragment {
isDataChanged = true; isDataChanged = true;
startIconId = profile.parent.getSmallIconDark(); startIconId = profile.parent.getSmallIconDark();
profile.iconId = startIconId; profile.iconId = startIconId;
profile.iconStringName = profile.parent.getIconName();
} else if (isUserProfile) { } else if (isUserProfile) {
title = profile.userProfileTitle; title = profile.userProfileTitle;
profileNameEt.setText(title); profileNameEt.setText(title);

View file

@ -103,11 +103,7 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter<ProfileViewHolder>
: ApplicationMode.getIconResFromName(app, item.getIconName(), app.getPackageName()); : ApplicationMode.getIconResFromName(app, item.getIconName(), app.getPackageName());
if (iconRes == 0 || iconRes == -1) { if (iconRes == 0 || iconRes == -1) {
if (item.getParent() != null) { iconRes = R.drawable.ic_action_world_globe;
iconRes = item.getParent().getSmallIconDark();
} else {
iconRes = R.drawable.ic_action_world_globe;
}
} }
if (selectedItems.contains(item)) { if (selectedItems.contains(item)) {