refactored some code

This commit is contained in:
Chumva 2018-03-06 11:25:37 +02:00
parent 7200af0c00
commit b11af88b99
2 changed files with 1 additions and 3 deletions

View file

@ -32,6 +32,4 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_action_circle" />
</LinearLayout>

View file

@ -118,7 +118,6 @@ public class EditFavoriteGroupDialogFragment extends MenuBottomSheetDialogFragme
items.add(byTypeItem);
final int themeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
final View changeColorView = View.inflate(new ContextThemeWrapper(getContext(), themeRes),
R.layout.change_fav_color, null);
((ImageView) changeColorView.findViewById(R.id.change_color_icon))
@ -172,6 +171,7 @@ public class EditFavoriteGroupDialogFragment extends MenuBottomSheetDialogFragme
getMyApplication().getFavorites()
.editFavouriteGroup(group, group.name, group.color, visible);
updateParentFragment();
dismiss();
}
})
.create();