Ejemplo n.º 1
0
 @Override
 public void onBackPressed() {
   if (notepriseFragmentManager != null && notepriseFragmentManager.onBackPressed()) {
     return;
   }
   super.onBackPressed();
 }
Ejemplo n.º 2
0
 @Override
 public void handleSalesforceLoginComplete() {
   super.handleSalesforceLoginComplete();
   if (salesforceLoginUtility != null && salesforceLoginUtility.salesforceRestClient != null) {
     loggedInSalesforce = Boolean.TRUE;
     salesforceRestClient = salesforceLoginUtility.salesforceRestClient;
     checkButtons();
   }
 }
Ejemplo n.º 3
0
 @Override
 protected void onStart() {
   super.onStart();
   if (noteprisePreferences.isSignedInToEvernote()) {
     setupEvernoteSession();
     if (evernoteSession != null && evernoteSession.isLoggedIn()) {
       handleEvernoteLoginComplete();
     }
   }
 }
Ejemplo n.º 4
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FragmentManager.enableDebugLogging(Boolean.FALSE);
    if (android.os.Build.VERSION.SDK_INT > 9) {
      StrictMode.ThreadPolicy policy =
          new StrictMode.ThreadPolicy.Builder().permitNetwork().build();
      StrictMode.setThreadPolicy(policy);
    }
    setUpWelcomeScreen();
  }
Ejemplo n.º 5
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.welcome_screen_layout);
   FragmentManager.enableDebugLogging(Boolean.FALSE);
   if (android.os.Build.VERSION.SDK_INT > 9) {
     StrictMode.ThreadPolicy policy =
         new StrictMode.ThreadPolicy.Builder().permitNetwork().build();
     StrictMode.setThreadPolicy(policy);
   }
   evernoteLoginButton = (Button) findViewById(R.id.evernote_login_button);
   evernoteLoginButton.setOnClickListener(this);
 }
Ejemplo n.º 6
0
 @Override
 protected void onResume() {
   super.onResume();
   doSalesforceLoginCheck();
   checkButtons();
   if (isEvernoteAuthenticationComplete() && authenticationStarted) {
     // hideFullScreenProgresIndicator();
     authenticationStarted = false;
     noteprisePreferences.saveEvernoteAuthToken(evernoteSession.getAuthToken());
     AuthenticationResult authResult = evernoteSession.getAuthenticationResult();
     noteprisePreferences.saveEvetnoteNoteStoreUrl(authResult.getNoteStoreUrl());
     noteprisePreferences.saveEvernoteWebApiPrefix(authResult.getWebApiUrlPrefix());
     noteprisePreferences.saveEvetnoteUserId(authResult.getUserId());
     noteprisePreferences.saveSignedInToEvernote(evernoteSession.isLoggedIn());
     handleEvernoteLoginComplete();
   }
 }
Ejemplo n.º 7
0
 @Override
 public void doTaskInBackground() {
   super.doTaskInBackground();
   startEvernoteAuthentication();
 }