Commit 948bdf5c authored by Thomas Guillem's avatar Thomas Guillem

VideoPlayer: requestVisibleBehind only for tv

Video was not stopped when screen was turned off because of this.
parent 86e912f2
......@@ -544,7 +544,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
/* Stop the earliest possible to avoid vout error */
if (isFinishing())
stopPlayback();
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
requestVisibleBehind(true);
}
......
Markdown is supported
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