Пример #1
0
 @Override
 @Nullable
 public Uri getThumbnailUri() {
   if (hasThumbnail) {
     return PartAuthority.getAttachmentThumbnailUri(attachmentId);
   } else {
     return null;
   }
 }
Пример #2
0
 @Override
 @Nullable
 public Uri getDataUri() {
   if (hasData) {
     return PartAuthority.getAttachmentDataUri(attachmentId);
   } else {
     return null;
   }
 }
Пример #3
0
 @Override
 @NonNull
 public Uri getThumbnailUri() {
   return PartAuthority.getAttachmentThumbnailUri(attachmentId);
 }
Пример #4
0
 @Override
 @NonNull
 public Uri getDataUri() {
   return PartAuthority.getAttachmentDataUri(attachmentId);
 }