本文整理汇总了Java中org.telegram.messenger.MediaController.allPhotosAlbumEntry方法的典型用法代码示例。如果您正苦于以下问题:Java MediaController.allPhotosAlbumEntry方法的具体用法?Java MediaController.allPhotosAlbumEntry怎么用?Java MediaController.allPhotosAlbumEntry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.telegram.messenger.MediaController
的用法示例。
在下文中一共展示了MediaController.allPhotosAlbumEntry方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init(ChatActivity parentFragment) {
if (MediaController.allPhotosAlbumEntry != null) {
for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
photoEntry.caption = null;
photoEntry.imagePath = null;
photoEntry.thumbPath = null;
}
}
if (currentHintAnimation != null) {
currentHintAnimation.cancel();
currentHintAnimation = null;
}
hintTextView.setAlpha(0.0f);
hintTextView.setVisibility(View.INVISIBLE);
attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
photoAttachAdapter.clearSelectedPhotos();
baseFragment = parentFragment;
layoutManager.scrollToPositionWithOffset(0, 1000000);
updatePhotosButton();
}
示例2: getCellForIndex
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private PhotoAttachPhotoCell getCellForIndex(int index) {
if (MediaController.allPhotosAlbumEntry == null) {
return null;
}
int count = attachPhotoRecyclerView.getChildCount();
for (int a = 0; a < count; a++) {
View view = attachPhotoRecyclerView.getChildAt(a);
if (view instanceof PhotoAttachPhotoCell) {
PhotoAttachPhotoCell cell = (PhotoAttachPhotoCell) view;
int num = (Integer) cell.getImageView().getTag();
if (num < 0 || num >= MediaController.allPhotosAlbumEntry.photos.size()) {
continue;
}
if (num == index) {
return cell;
}
}
}
return null;
}
示例3: init
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init() {
if (MediaController.allPhotosAlbumEntry != null) {
for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
photoEntry.caption = null;
photoEntry.imagePath = null;
photoEntry.thumbPath = null;
photoEntry.stickers.clear();
}
}
if (currentHintAnimation != null) {
currentHintAnimation.cancel();
currentHintAnimation = null;
}
hintTextView.setAlpha(0.0f);
hintTextView.setVisibility(View.INVISIBLE);
attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
photoAttachAdapter.clearSelectedPhotos();
layoutManager.scrollToPositionWithOffset(0, 1000000);
updatePhotosButton();
}
示例4: onRevealAnimationEnd
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private void onRevealAnimationEnd(boolean open) {
NotificationCenter.getInstance().setAnimationInProgress(false);
revealAnimationInProgress = false;
if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
MediaController.loadGalleryPhotosAlbums(0);
}
if (open) {
showHint();
}
}
示例5: getItemCount
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
@Override
public int getItemCount() {
int count = 0;
if (deviceHasGoodCamera) {
count++;
}
if (MediaController.allPhotosAlbumEntry != null) {
count += MediaController.allPhotosAlbumEntry.photos.size();
}
return count;
}
示例6: onRevealAnimationEnd
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private void onRevealAnimationEnd(boolean open) {
NotificationCenter.getInstance().setAnimationInProgress(false);
revealAnimationInProgress = false;
if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
MediaController.loadGalleryPhotosAlbums(0);
}
if (open) {
checkCamera(true);
showHint();
}
}
示例7: init
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init(ChatActivity parentFragment) {
if (MediaController.allPhotosAlbumEntry != null) {
for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
photoEntry.caption = null;
photoEntry.imagePath = null;
photoEntry.thumbPath = null;
}
}
attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
photoAttachAdapter.clearSelectedPhotos();
baseFragment = parentFragment;
updatePhotosButton();
}
示例8: loadGalleryPhotos
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void loadGalleryPhotos() {
if (MediaController.allPhotosAlbumEntry == null && Build.VERSION.SDK_INT >= 21) {
MediaController.loadGalleryPhotosAlbums(0);
}
}
示例9: onRevealAnimationEnd
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void onRevealAnimationEnd(boolean open) {
if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
MediaController.loadGalleryPhotosAlbums(0);
}
}
示例10: getItemCount
import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
@Override
public int getItemCount() {
return (MediaController.allPhotosAlbumEntry != null ? MediaController.allPhotosAlbumEntry.photos.size() : 0);
}