Set minWidth to 10dp so that the popup player works (mostly) correctly

This commit is contained in:
litetex 2021-06-19 14:26:40 +02:00
parent 2a24532e1d
commit a9b5ef3bd3

View file

@ -89,8 +89,8 @@ public final class SeekbarPreviewThumbnailHelper {
// Scaling more than that factor looks really pixelated -> max
Math.round(srcWidth * 2.5f)
),
// Min width = 80dp
DeviceUtils.dpToPx(80, context)
// Min width = 10dp
DeviceUtils.dpToPx(10, context)
);
final float scaleFactor = (float) newWidth / srcWidth;