bugfix
This commit is contained in:
parent
ca4c0186f3
commit
f31922500d
@ -36,7 +36,7 @@ public class BotUtils {
|
|||||||
public static InlineKeyboardMarkup getShowKeyboard(InfoSections infoSections) {
|
public static InlineKeyboardMarkup getShowKeyboard(InfoSections infoSections) {
|
||||||
InlineKeyboardMarkup inlineKeyboardMarkup = new InlineKeyboardMarkup();
|
InlineKeyboardMarkup inlineKeyboardMarkup = new InlineKeyboardMarkup();
|
||||||
List<List<InlineKeyboardButton>> columns = new ArrayList<>();
|
List<List<InlineKeyboardButton>> columns = new ArrayList<>();
|
||||||
List<SectionType> sectionTypes = Arrays.asList(SectionType.values());
|
List<SectionType> sectionTypes = new ArrayList<>(Arrays.asList(SectionType.values()));
|
||||||
infoSections.getSections().forEach(s -> sectionTypes.remove(s.getType()));
|
infoSections.getSections().forEach(s -> sectionTypes.remove(s.getType()));
|
||||||
sectionTypes.forEach(s -> {
|
sectionTypes.forEach(s -> {
|
||||||
InlineKeyboardButton inlineKeyboardButton = new InlineKeyboardButton();
|
InlineKeyboardButton inlineKeyboardButton = new InlineKeyboardButton();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user