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

No recommendation on Oreo TVs for now

See #473
parent b16a6ad2
......@@ -57,6 +57,7 @@ import android.widget.ProgressBar;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.MediaPlayer;
import org.videolan.libvlc.util.AndroidUtil;
import org.videolan.medialibrary.Medialibrary;
import org.videolan.medialibrary.Tools;
import org.videolan.medialibrary.interfaces.MediaUpdatedCb;
......@@ -209,7 +210,7 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
@Override
protected void onStop() {
super.onStop();
if (AndroidDevices.isAndroidTv) startService(new Intent(this, RecommendationsService.class));
if (AndroidDevices.isAndroidTv && !AndroidUtil.isOOrLater) startService(new Intent(this, RecommendationsService.class));
TvUtil.releaseBackgroundManager(mBackgroundManager);
}
......
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