Exemplo n.º 1
0
  @Override
  protected void onResumeFragments() {
    super.onResumeFragments();
    Session session = Session.getActiveSession();

    if (session != null && session.isOpened()) showFragment(SELECTION, false);
    else showFragment(SPLASH, false);
  }
  /* make any fragment method calls after the fragments have been resumed */
  @Override
  protected void onResumeFragments() {
    // TODO Auto-generated method stub
    super.onResumeFragments();

    if (isFromSavedState) {
      mFragmentListCallback.changePage(restoredIndex);
      isFromSavedState = false;
    }
  }
  @Override
  protected void onResumeFragments() {
    super.onResumeFragments();

    /* Show passphrase dialog to cache a new passphrase the user enters for using it later for
     * encryption. Based on mSecretKeyId it asks for a passphrase to open a private key or it asks
     * for a symmetric passphrase
     */
    PassphraseDialogFragment frag = new PassphraseDialogFragment();
    frag.setArguments(getIntent().getExtras());
    frag.show(getSupportFragmentManager(), "passphraseDialog");
  }
Exemplo n.º 4
0
  @Override
  protected void onResumeFragments() {
    super.onResumeFragments();
    Session session = Session.getActiveSession();

    if (session != null && session.isOpened()) {
      // if the session is already open,
      // try to show the register fragment
      showFragment(FEED, false);
    } else {
      // otherwise present the splash screen
      // and ask the person to login.
      Session.getActiveSession().closeAndClearTokenInformation();
      Session.getActiveSession().closeAndClearTokenInformation();
      Intent intent = new Intent(this, MainActivity.class);
      startActivity(intent);
    }
  }
  @Override
  protected void onResumeFragments() {
    Log.d(TAG, "onResumeFragments!");
    super.onResumeFragments();
    Session session = Session.getActiveSession();

    if (session != null && session.isOpened()) {
      // if the session is already open, try to show the selection fragment

      // Login ok
      Log.d(TAG, "Login to facebook Ok!");
      Intent i = new Intent(LoginActivity.this, MainActivity.class);
      startActivityForResult(i, REQUEST_CODE_FACEBOOK_LOGIN);

      // userSkippedLogin = false;
    } /*else if (userSkippedLogin) {
          showFragment(SELECTION, false);
      }*/ else {
      // otherwise present the splash screen and ask the user to login, unless the user explicitly
      // skipped.
      // showFragment(SPLASH, false);
      Log.d(TAG, "Login to facebook not Ok!");
    }
  }
Exemplo n.º 6
0
 @Override
 protected void onResumeFragments() {
   // TODO Auto-generated method stub
   super.onResumeFragments();
 }