@Override
  protected void onResume() {
    super.onResume();

    refreshPlayerItem();

    if (ConfigurationManager.instance().getBoolean(Constants.PREF_KEY_GUI_TOS_ACCEPTED)) {
      if (ConfigurationManager.instance()
          .getBoolean(Constants.PREF_KEY_GUI_INITIAL_SETTINGS_COMPLETE)) {
        mainResume();
        Offers.initAdNetworks(this);
      } else {
        controller.startWizardActivity();
      }
    } else {
      TermsUseDialog dlg = new TermsUseDialog();
      dlg.show(getFragmentManager());
    }

    checkLastSeenVersion();
    registerMainBroadcastReceiver();
  }
 private void onShutdownDialogButtonPositive() {
   Offers.showInterstitial(this, true, false);
 }
 private void onLastDialogButtonPositive() {
   Offers.showInterstitial(this, false, true);
 }
 public void shutdown() {
   Offers.stopAdNetworks(this);
   finish();
   Engine.instance().shutdown();
 }