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
7cbb80b9
Commit
7cbb80b9
authored
Dec 24, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playback: fix track selector rotation and appearance on older devices
parent
6afa2b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+3
-1
No files found.
Sources/VLCMovieViewController.m
View file @
7cbb80b9
...
...
@@ -355,16 +355,18 @@
_trackSelectorTableView
.
indicatorStyle
=
UIScrollViewIndicatorStyleWhite
;
[
_trackSelectorTableView
registerClass
:[
VLCTrackSelectorTableViewCell
class
]
forCellReuseIdentifier
:
TRACK_SELECTOR_TABLEVIEW_CELL
];
[
_trackSelectorTableView
registerClass
:[
VLCTrackSelectorHeaderView
class
]
forHeaderFooterViewReuseIdentifier
:
TRACK_SELECTOR_TABLEVIEW_SECTIONHEADER
];
_trackSelectorTableView
.
autoresizingMask
=
UIViewAutoresizingFlexibleHeight
|
UIViewAutoresizingFlexibleWidth
;
_trackSelectorContainer
=
[[
VLCFrostedGlasView
alloc
]
initWithFrame
:
CGRectMake
((
rect
.
size
.
width
-
300
.)
/
2
.,
(
rect
.
size
.
height
-
320
.)
/
2
.,
300
.,
320
.)];
[
_trackSelectorContainer
addSubview
:
_trackSelectorTableView
];
_trackSelectorContainer
.
autoresizingMask
=
UIViewAutoresizingFlexibleRightMargin
|
UIViewAutoresizingFlexibleLeftMargin
|
UIViewAutoresizingFlexibleBottomMargin
|
UIViewAutoresizingFlexibleHeight
;
_trackSelectorContainer
.
hidden
=
YES
;
if
([[
UIDevice
currentDevice
]
speedCategory
]
>=
3
)
{
_trackSelectorTableView
.
opaque
=
NO
;
_trackSelectorTableView
.
backgroundColor
=
[
UIColor
clearColor
];
}
else
_trackSelectorTableView
.
backgroundColor
=
[
UIColor
VLCDarkBackground
Color
];
_trackSelectorTableView
.
backgroundColor
=
[
UIColor
black
Color
];
[
self
.
view
addSubview
:
_trackSelectorContainer
];
}
...
...
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