Java Code Examples for org.telegram.ui.Cells.FeaturedStickerSetCell#setTag()
The following examples show how to use
org.telegram.ui.Cells.FeaturedStickerSetCell#setTag() .
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: FeaturedStickersActivity.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (getItemViewType(position) == 0) { ArrayList<TLRPC.StickerSetCovered> arrayList = DataQuery.getInstance(currentAccount).getFeaturedStickerSets(); FeaturedStickerSetCell cell = (FeaturedStickerSetCell) holder.itemView; cell.setTag(position); TLRPC.StickerSetCovered stickerSet = arrayList.get(position); cell.setStickersSet(stickerSet, position != arrayList.size() - 1, unreadStickers != null && unreadStickers.contains(stickerSet.set.id)); boolean installing = installingStickerSets.indexOfKey(stickerSet.set.id) >= 0; if (installing && cell.isInstalled()) { installingStickerSets.remove(stickerSet.set.id); installing = false; cell.setDrawProgress(false); } cell.setDrawProgress(installing); } }
Example 2
Source File: FeaturedStickersActivity.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (getItemViewType(position) == 0) { ArrayList<TLRPC.StickerSetCovered> arrayList = DataQuery.getInstance(currentAccount).getFeaturedStickerSets(); FeaturedStickerSetCell cell = (FeaturedStickerSetCell) holder.itemView; cell.setTag(position); TLRPC.StickerSetCovered stickerSet = arrayList.get(position); cell.setStickersSet(stickerSet, position != arrayList.size() - 1, unreadStickers != null && unreadStickers.contains(stickerSet.set.id)); boolean installing = installingStickerSets.indexOfKey(stickerSet.set.id) >= 0; if (installing && cell.isInstalled()) { installingStickerSets.remove(stickerSet.set.id); installing = false; cell.setDrawProgress(false); } cell.setDrawProgress(installing); } }
Example 3
Source File: FeaturedStickersActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (getItemViewType(position) == 0) { ArrayList<TLRPC.StickerSetCovered> arrayList = MediaDataController.getInstance(currentAccount).getFeaturedStickerSets(); FeaturedStickerSetCell cell = (FeaturedStickerSetCell) holder.itemView; cell.setTag(position); TLRPC.StickerSetCovered stickerSet = arrayList.get(position); cell.setStickersSet(stickerSet, position != arrayList.size() - 1, unreadStickers != null && unreadStickers.contains(stickerSet.set.id)); boolean installing = installingStickerSets.indexOfKey(stickerSet.set.id) >= 0; if (installing && cell.isInstalled()) { installingStickerSets.remove(stickerSet.set.id); installing = false; } cell.setDrawProgress(installing, false); } }
Example 4
Source File: FeaturedStickersActivity.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (getItemViewType(position) == 0) { ArrayList<TLRPC.StickerSetCovered> arrayList = MediaDataController.getInstance(currentAccount).getFeaturedStickerSets(); FeaturedStickerSetCell cell = (FeaturedStickerSetCell) holder.itemView; cell.setTag(position); TLRPC.StickerSetCovered stickerSet = arrayList.get(position); cell.setStickersSet(stickerSet, position != arrayList.size() - 1, unreadStickers != null && unreadStickers.contains(stickerSet.set.id)); boolean installing = installingStickerSets.indexOfKey(stickerSet.set.id) >= 0; if (installing && cell.isInstalled()) { installingStickerSets.remove(stickerSet.set.id); installing = false; } cell.setDrawProgress(installing, false); } }