Commit e943418c authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

VideoPlayerActivity: Prevent ClassCastException

On Android 4.0.x
parent 0df40ab0
......@@ -385,8 +385,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mTitle = mActionBarView.findViewById(;
if (!AndroidUtil.isJellyBeanOrLater) {
mSysTime = (TextView) findViewById(;
mBattery = (TextView) findViewById(;
View v = findViewById(;
if (v instanceof TextView) mSysTime = (TextView) v;
v = findViewById(;
if (v instanceof TextView) mBattery = (TextView) v;
mPlaylistToggle = (ImageView) findViewById(;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment