Exemplo n.º 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();
  }
Exemplo n.º 2
0
 private void onShutdownDialogButtonPositive() {
   Offers.showInterstitial(this, true, false);
 }
Exemplo n.º 3
0
 private void onLastDialogButtonPositive() {
   Offers.showInterstitial(this, false, true);
 }
Exemplo n.º 4
0
 public void shutdown() {
   Offers.stopAdNetworks(this);
   finish();
   Engine.instance().shutdown();
 }