use of org.telegram.ui.Cells.SharedDocumentCell in project Telegram-FOSS by Telegram-FOSS-Team.
the class PhotoPickerActivity method onListItemClick.
private void onListItemClick(View view, Object item) {
boolean add;
if (addToSelectedPhotos(item, -1) == -1) {
add = true;
} else {
add = false;
}
if (view instanceof SharedDocumentCell) {
Integer index = (Integer) view.getTag();
MediaController.PhotoEntry photoEntry = selectedAlbum.photos.get(index);
SharedDocumentCell cell = (SharedDocumentCell) view;
cell.setChecked(selectedPhotosOrder.contains(photoEntry.imageId), true);
}
updatePhotosButton(add ? 1 : 2);
delegate.selectedPhotosChanged();
}
Aggregations