Commit 5a9aab57 authored by Geoffrey Métais's avatar Geoffrey Métais

Cast brightness value to int

parent cff7e478
......@@ -2136,7 +2136,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
float brightness = Math.min(Math.max(lp.screenBrightness + delta, 0.01f), 1f);
setWindowBrightness(brightness);
brightness = Math.round(brightness * 100);
showInfoWithVerticalBar(getString(R.string.brightness) + "\n" + brightness + '%', 1000, (int) brightness);
showInfoWithVerticalBar(getString(R.string.brightness) + "\n" + (int) brightness + '%', 1000, (int) brightness);
}
private void setWindowBrightness(float brightness) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment