Set minWidth to 10dp so that the popup player works (mostly) correctly
This commit is contained in:
parent
2a24532e1d
commit
a9b5ef3bd3
|
@ -89,8 +89,8 @@ public final class SeekbarPreviewThumbnailHelper {
|
||||||
// Scaling more than that factor looks really pixelated -> max
|
// Scaling more than that factor looks really pixelated -> max
|
||||||
Math.round(srcWidth * 2.5f)
|
Math.round(srcWidth * 2.5f)
|
||||||
),
|
),
|
||||||
// Min width = 80dp
|
// Min width = 10dp
|
||||||
DeviceUtils.dpToPx(80, context)
|
DeviceUtils.dpToPx(10, context)
|
||||||
);
|
);
|
||||||
|
|
||||||
final float scaleFactor = (float) newWidth / srcWidth;
|
final float scaleFactor = (float) newWidth / srcWidth;
|
||||||
|
|
Loading…
Reference in New Issue