org.telegram.ui.Cells.StickerSetNameCell Java Examples
The following examples show how to use
org.telegram.ui.Cells.StickerSetNameCell.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StickerMasksAlert.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.stickersDidLoad) { if ((Integer) args[0] == currentType) { updateStickerTabs(); reloadStickersAdapter(); checkPanels(); } } else if (id == NotificationCenter.recentDocumentsDidLoad) { boolean isGif = (Boolean) args[0]; int type = (Integer) args[1]; if (!isGif && (type == currentType || type == MediaDataController.TYPE_FAVE)) { checkDocuments(false); } } else if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { View child = gridView.getChildAt(a); if (child instanceof StickerSetNameCell || child instanceof StickerEmojiCell) { child.invalidate(); } } } } }
Example #2
Source File: StickerMasksAlert.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.stickersDidLoad) { if ((Integer) args[0] == currentType) { updateStickerTabs(); reloadStickersAdapter(); checkPanels(); } } else if (id == NotificationCenter.recentDocumentsDidLoad) { boolean isGif = (Boolean) args[0]; int type = (Integer) args[1]; if (!isGif && (type == currentType || type == MediaDataController.TYPE_FAVE)) { checkDocuments(false); } } else if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { View child = gridView.getChildAt(a); if (child instanceof StickerSetNameCell || child instanceof StickerEmojiCell) { child.invalidate(); } } } } }
Example #3
Source File: StickersSearchAdapter.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public void updateColors(RecyclerListView listView) { for (int i = 0, size = listView.getChildCount(); i < size; i++) { final View child = listView.getChildAt(i); if (child instanceof FeaturedStickerSetInfoCell) { ((FeaturedStickerSetInfoCell) child).updateColors(); } else if (child instanceof StickerSetNameCell) { ((StickerSetNameCell) child).updateColors(); } } }
Example #4
Source File: StickersSearchAdapter.java From Telegram with GNU General Public License v2.0 | 5 votes |
public void updateColors(RecyclerListView listView) { for (int i = 0, size = listView.getChildCount(); i < size; i++) { final View child = listView.getChildAt(i); if (child instanceof FeaturedStickerSetInfoCell) { ((FeaturedStickerSetInfoCell) child).updateColors(); } else if (child instanceof StickerSetNameCell) { ((StickerSetNameCell) child).updateColors(); } } }
Example #5
Source File: StickersSearchAdapter.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
public void getThemeDescriptions(List<ThemeDescription> descriptions, RecyclerListView listView, ThemeDescription.ThemeDescriptionDelegate delegate) { FeaturedStickerSetInfoCell.createThemeDescriptions(descriptions, listView, delegate); StickerSetNameCell.createThemeDescriptions(descriptions, listView, delegate); descriptions.add(new ThemeDescription(emptyImageView, ThemeDescription.FLAG_IMAGECOLOR, null, null, null, null, Theme.key_chat_emojiPanelEmptyText)); descriptions.add(new ThemeDescription(emptyTextView, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_chat_emojiPanelEmptyText)); }
Example #6
Source File: StickersSearchAdapter.java From Telegram with GNU General Public License v2.0 | 4 votes |
public void getThemeDescriptions(List<ThemeDescription> descriptions, RecyclerListView listView, ThemeDescription.ThemeDescriptionDelegate delegate) { FeaturedStickerSetInfoCell.createThemeDescriptions(descriptions, listView, delegate); StickerSetNameCell.createThemeDescriptions(descriptions, listView, delegate); descriptions.add(new ThemeDescription(emptyImageView, ThemeDescription.FLAG_IMAGECOLOR, null, null, null, null, Theme.key_chat_emojiPanelEmptyText)); descriptions.add(new ThemeDescription(emptyTextView, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_chat_emojiPanelEmptyText)); }