From 17abdd3379e4a27d5824e520a9a4cf91008d0076 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 28 May 2019 15:23:49 +0300 Subject: [PATCH] code cleaninng --- .../src/net/osmand/plus/profiles/EditProfileFragment.java | 1 + OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java index 16694509f2..9e95858100 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java @@ -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); diff --git a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java index 4db5def5cb..5f97c1fb62 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java +++ b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java @@ -103,11 +103,7 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter : 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; - } + iconRes = R.drawable.ic_action_world_globe; } if (selectedItems.contains(item)) {