[Android] Cast brightness value to int
Geoffrey Métais
git at videolan.org
Thu Jun 9 15:54:38 CEST 2016
vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 9 15:53:42 2016 +0200| [57f8304fbc4046efcd29543649656681a4842eb8] | committer: Geoffrey Métais
Cast brightness value to int
(cherry picked from commit 5a9aab57e6af107727f52db81c6b1e034860344d)
> https://code.videolan.org/videolan/vlc-android/commit/57f8304fbc4046efcd29543649656681a4842eb8
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 549b213..408b997 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -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) {
More information about the Android
mailing list