Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
e943418c
Commit
e943418c
authored
Mar 22, 2018
by
Geoffrey Métais
Browse files
VideoPlayerActivity: Prevent ClassCastException
On Android 4.0.x
parent
0df40ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
e943418c
...
...
@@ -385,8 +385,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mTitle
=
mActionBarView
.
findViewById
(
R
.
id
.
player_overlay_title
);
if
(!
AndroidUtil
.
isJellyBeanOrLater
)
{
mSysTime
=
(
TextView
)
findViewById
(
R
.
id
.
player_overlay_systime
);
mBattery
=
(
TextView
)
findViewById
(
R
.
id
.
player_overlay_battery
);
View
v
=
findViewById
(
R
.
id
.
player_overlay_systime
);
if
(
v
instanceof
TextView
)
mSysTime
=
(
TextView
)
v
;
v
=
findViewById
(
R
.
id
.
player_overlay_battery
);
if
(
v
instanceof
TextView
)
mBattery
=
(
TextView
)
v
;
}
mPlaylistToggle
=
(
ImageView
)
findViewById
(
R
.
id
.
playlist_toggle
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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