Skip to content

Commit

Permalink
Glimpse: Center crop thumbnails
Browse files Browse the repository at this point in the history
Change-Id: Ibe843964ab4c5bd25f3ef430c0fc23c62bde820b
  • Loading branch information
luca020400 committed Jan 2, 2025
1 parent 58b55cb commit b487397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class AlbumsFragment : Fragment(R.layout.fragment_albums) {
Thumbnail.MAX_THUMBNAIL_SIZE,
Thumbnail.MAX_THUMBNAIL_SIZE
)
.centerCrop()
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class ThumbnailAdapter : ListAdapter<AlbumViewModel.AlbumContent, RecyclerView.V
Thumbnail.MAX_THUMBNAIL_SIZE,
Thumbnail.MAX_THUMBNAIL_SIZE
)
.centerCrop()
)

videoOverlayImageView.isVisible = media.mediaType == MediaType.VIDEO
Expand Down

0 comments on commit b487397

Please sign in to comment.