mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
AndroidTv: Don't run oreo channels when not on oreo
This commit is contained in:
parent
22ddd11573
commit
409c064c73
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ public class TvUtil
|
||||||
*/
|
*/
|
||||||
public static void scheduleSyncingChannel(Context context)
|
public static void scheduleSyncingChannel(Context context)
|
||||||
{
|
{
|
||||||
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
|
||||||
|
return;
|
||||||
|
|
||||||
ComponentName componentName = new ComponentName(context, SyncChannelJobService.class);
|
ComponentName componentName = new ComponentName(context, SyncChannelJobService.class);
|
||||||
JobInfo.Builder builder = new JobInfo.Builder(1, componentName);
|
JobInfo.Builder builder = new JobInfo.Builder(1, componentName);
|
||||||
builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);
|
builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue