Earlier quoted context omitted.
// don't use hardware acceleration canvas.enableHardwareAcceleration(true); Which is true? The comment is lie. Is this a bug? Was this changed for some reason? Should I remove the comment? Should I toggle the boolean? Why weren't we supposed to use HW acceleration? Why are we using it now? What changed? What value did the comment have in the first place?
>What value did the comment have in the first place? That comment is the only indicator that something may be wrong. Your next steps are the same as with any suspected bug, find out what the code is doing (seems obvious here) and then find out if that's what it should be doing. That comment, however, is a good example of a bad comment. In this particular scenario, it's very obvious what the code is doing, so the comm…
volume = 5;
Or setVolumeLevel(5);