Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-Android
Commits
57f8304f
Commit
57f8304f
authored
Jun 09, 2016
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast brightness value to int
(cherry picked from commit
5a9aab57
)
parent
cf4e5bbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+1
-1
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
57f8304f
...
...
@@ -2136,7 +2136,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
float
brightness
=
Math
.
min
(
Math
.
max
(
lp
.
screenBrightness
+
delta
,
0.01f
),
1
f
);
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment