Fix inappropriate canvas.getHeight/Width

This commit is contained in:
edr
2024-02-21 16:09:50 +01:00
parent 3be08d09f0
commit 2190ef1c94

View File

@@ -56,8 +56,8 @@ public class VolumeView extends View {
return;
}
final int height = canvas.getHeight();
final int width = canvas.getWidth();
final int height = getHeight();
final int width = getWidth();
final int size = volumeHistory.size(); // Size is at most width
final double volumeNorm = volumeHistory.getVolumeNorm();