Fix inappropriate canvas.getHeight/Width
This commit is contained in:
@@ -56,8 +56,8 @@ public class VolumeView extends View {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final int height = canvas.getHeight();
|
final int height = getHeight();
|
||||||
final int width = canvas.getWidth();
|
final int width = getWidth();
|
||||||
|
|
||||||
final int size = volumeHistory.size(); // Size is at most width
|
final int size = volumeHistory.size(); // Size is at most width
|
||||||
final double volumeNorm = volumeHistory.getVolumeNorm();
|
final double volumeNorm = volumeHistory.getVolumeNorm();
|
||||||
|
|||||||
Reference in New Issue
Block a user