Merge pull request #8598 from JosJuice/channel-sync-android-tv
Android: More robust check for whether to sync channels
This commit is contained in:
commit
d4085382dc
|
@ -59,8 +59,6 @@ public final class TvMainActivity extends FragmentActivity implements MainView
|
||||||
{
|
{
|
||||||
StartupHandler.HandleInit(this);
|
StartupHandler.HandleInit(this);
|
||||||
}
|
}
|
||||||
// Setup and/or sync channels
|
|
||||||
TvUtil.scheduleSyncingChannel(getApplicationContext());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -27,6 +27,10 @@ public final class StartupHandler
|
||||||
// Ask the user if he wants to enable analytics if we haven't yet.
|
// Ask the user if he wants to enable analytics if we haven't yet.
|
||||||
Analytics.checkAnalyticsInit(parent);
|
Analytics.checkAnalyticsInit(parent);
|
||||||
|
|
||||||
|
// Set up and/or sync Android TV channels
|
||||||
|
if (TvUtil.isLeanback(parent))
|
||||||
|
TvUtil.scheduleSyncingChannel(parent);
|
||||||
|
|
||||||
String[] start_files = null;
|
String[] start_files = null;
|
||||||
Bundle extras = parent.getIntent().getExtras();
|
Bundle extras = parent.getIntent().getExtras();
|
||||||
if (extras != null)
|
if (extras != null)
|
||||||
|
|
Loading…
Reference in New Issue