Fix bug addwaypoint

This commit is contained in:
androiddevkotlin 2021-03-02 12:33:53 +02:00
parent c52a8ae021
commit f400e755fd

View file

@ -160,12 +160,11 @@ public class SelectFavoriteCategoryBottomSheet extends MenuBottomSheetDialogFrag
favoriteCategoryContainer.addView(createCategoryItem(activity, nightMode, category.getDisplayName(getContext()), favoriteCategoryContainer.addView(createCategoryItem(activity, nightMode, category.getDisplayName(getContext()),
category.getColor(), favoriteCategoryCount, !category.isVisible())); category.getColor(), favoriteCategoryCount, !category.isVisible()));
} }
}
items.add(new BaseBottomSheetItem.Builder() items.add(new BaseBottomSheetItem.Builder()
.setCustomView(favoriteCategoryList) .setCustomView(favoriteCategoryList)
.create()); .create());
} }
}
private View createCategoryItem(@NonNull final Activity activity, boolean nightMode, final String categoryName, final int categoryColor, String categoryPointCount, boolean isHidden) { private View createCategoryItem(@NonNull final Activity activity, boolean nightMode, final String categoryName, final int categoryColor, String categoryPointCount, boolean isHidden) {
View itemView = UiUtilities.getInflater(activity, nightMode).inflate(R.layout.bottom_sheet_item_with_descr_and_radio_btn, null); View itemView = UiUtilities.getInflater(activity, nightMode).inflate(R.layout.bottom_sheet_item_with_descr_and_radio_btn, null);