Java Code Examples for org.telegram.ui.Cells.DialogCell#onReorderStateChanged()
The following examples show how to use
org.telegram.ui.Cells.DialogCell#onReorderStateChanged() .
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: DialogsAdapter.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) { if (holder.itemView instanceof DialogCell) { DialogCell dialogCell = (DialogCell) holder.itemView; dialogCell.onReorderStateChanged(isReordering, false); int position = fixPosition(holder.getAdapterPosition()); dialogCell.setDialogIndex(position); dialogCell.checkCurrentDialogIndex(dialogsListFrozen); dialogCell.setChecked(selectedDialogs.contains(dialogCell.getDialogId()), false); } }
Example 2
Source File: DialogsAdapter.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) { if (holder.itemView instanceof DialogCell) { DialogCell dialogCell = (DialogCell) holder.itemView; dialogCell.onReorderStateChanged(isReordering, false); int position = fixPosition(holder.getAdapterPosition()); dialogCell.setDialogIndex(position); dialogCell.checkCurrentDialogIndex(dialogsListFrozen); dialogCell.setChecked(selectedDialogs.contains(dialogCell.getDialogId()), false); } }