Skip to content
Permalink
Browse files
Merge pull request #8598 from JosJuice/channel-sync-android-tv
Android: More robust check for whether to sync channels
  • Loading branch information
leoetlino committed Mar 16, 2020
2 parents 3613642 + 64953bb commit d408538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -59,8 +59,6 @@ protected void onCreate(Bundle savedInstanceState)
{
StartupHandler.HandleInit(this);
}
// Setup and/or sync channels
TvUtil.scheduleSyncingChannel(getApplicationContext());
}

@Override
@@ -27,6 +27,10 @@ public static void HandleInit(FragmentActivity parent)
// Ask the user if he wants to enable analytics if we haven't yet.
Analytics.checkAnalyticsInit(parent);

// Set up and/or sync Android TV channels
if (TvUtil.isLeanback(parent))
TvUtil.scheduleSyncingChannel(parent);

String[] start_files = null;
Bundle extras = parent.getIntent().getExtras();
if (extras != null)

0 comments on commit d408538

Please sign in to comment.