Skip to content
Permalink
Browse files
Merge pull request #7541 from zackhow/notoreo
AndroidTv: Don't run oreo channels when not on oreo
  • Loading branch information
JosJuice committed Nov 3, 2018
2 parents 0d00e62 + 409c064 commit 710b893
Showing 1 changed file with 3 additions and 0 deletions.
@@ -197,6 +197,9 @@ private static String getFileProvider(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);
JobInfo.Builder builder = new JobInfo.Builder(1, componentName);
builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);

0 comments on commit 710b893

Please sign in to comment.