Пример #1
0
  @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();
  }
Пример #2
0
 private void onShutdownDialogButtonPositive() {
   Offers.showInterstitial(this, true, false);
 }
Пример #3
0
 private void onLastDialogButtonPositive() {
   Offers.showInterstitial(this, false, true);
 }
Пример #4
0
 public void shutdown() {
   Offers.stopAdNetworks(this);
   finish();
   Engine.instance().shutdown();
 }