Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
986796de
Commit
986796de
authored
Jun 05, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset brightness slider value on appearance (fixes #14802)
(cherry picked from commit
31b830cd
)
parent
7d182bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+5
-1
No files found.
Sources/VLCMovieViewController.m
View file @
986796de
...
...
@@ -450,6 +450,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
vpc
.
delegate
=
self
;
[
vpc
recoverPlaybackState
];
[
self
screenBrightnessChanged
:
nil
];
[
self
setControlsHidden
:
NO
animated
:
YES
];
}
...
...
@@ -1527,7 +1528,10 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
-
(
void
)
screenBrightnessChanged
:(
NSNotification
*
)
notification
{
self
.
brightnessSlider
.
value
=
[(
UIScreen
*
)
notification
.
object
brightness
]
*
2
.;
if
(
notification
)
self
.
brightnessSlider
.
value
=
[(
UIScreen
*
)
notification
.
object
brightness
]
*
2
.;
else
if
(
!
[[
UIDevice
currentDevice
]
hasExternalDisplay
])
self
.
brightnessSlider
.
value
=
[[[
UIScreen
screens
]
firstObject
]
brightness
]
*
2
.;
}
#pragma mark - playback view
...
...
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