mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-04 19:15:39 +00:00
fix: re-add radius to ThumbnailView
This commit is contained in:
parent
2c8141c8bb
commit
ddc75859aa
@ -72,7 +72,7 @@ class AlbumThumbnailView : FrameLayout {
|
|||||||
// hit intersects with this particular child
|
// hit intersects with this particular child
|
||||||
val slide = slides.getOrNull(index) ?: return
|
val slide = slides.getOrNull(index) ?: return
|
||||||
// only open to downloaded images
|
// only open to downloaded images
|
||||||
if (slide.isInProgress || slide.isPendingDownload) return
|
if (slide.isInProgress) return
|
||||||
|
|
||||||
ActivityDispatcher.get(context)?.dispatchIntent { context ->
|
ActivityDispatcher.get(context)?.dispatchIntent { context ->
|
||||||
MediaPreviewActivity.getPreviewIntent(context, slide, mms)
|
MediaPreviewActivity.getPreviewIntent(context, slide, mms)
|
||||||
|
@ -97,6 +97,7 @@ public class ThumbnailView extends FrameLayout {
|
|||||||
bounds[MAX_WIDTH] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxWidth, 0);
|
bounds[MAX_WIDTH] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxWidth, 0);
|
||||||
bounds[MIN_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_minHeight, 0);
|
bounds[MIN_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_minHeight, 0);
|
||||||
bounds[MAX_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxHeight, 0);
|
bounds[MAX_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxHeight, 0);
|
||||||
|
radius = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_thumbnail_radius, 0);
|
||||||
typedArray.recycle();
|
typedArray.recycle();
|
||||||
} else {
|
} else {
|
||||||
radius = 0;
|
radius = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user