Commit 80f6d0c5 authored by Geoffrey Métais's avatar Geoffrey Métais

Continue playback when player is still visible

parent 9116405b
......@@ -585,15 +585,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mSize.setOnClickListener(null);
/* Stop the earliest possible to avoid vout error */
if (!isInPictureInPictureMode() && (isFinishing() || !requestVisibleBehind(true)))
if (!isInPictureInPictureMode() && (isFinishing() || (AndroidDevices.isAndroidTv() && !requestVisibleBehind(true))))
stopPlayback();
}
@Override
public boolean requestVisibleBehind(boolean visible) {
return AndroidDevices.isAndroidTv() && super.requestVisibleBehind(visible);
}
@Override
public void onVisibleBehindCanceled() {
super.onVisibleBehindCanceled();
......
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