Skip to content
Snippets Groups Projects
Commit 57f8304f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Cast brightness value to int

(cherry picked from commit 5a9aab57)
parent cf4e5bbc
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment