]> www.average.org Git - WhereAmI.git/blobdiff - src/org/average/whereami/Authorize.java
make configurable calendar selection
[WhereAmI.git] / src / org / average / whereami / Authorize.java
index aa3b834bb0cca7ddd1b6b0a8bcbef86e686521c6..1137ea57e454e3518509c40edaa21553aca8156c 100644 (file)
@@ -6,7 +6,7 @@ package org.average.whereami;
 import java.io.IOException;
 
 import org.average.whereami.ClientCredentials;
-import org.average.whereami.CredentialStore;
+import org.average.whereami.PersistentStore;
 
 import android.app.Activity;
 import android.os.Bundle;
@@ -68,12 +68,12 @@ public class Authorize extends Activity {
                                 ClientCredentials.CLIENT_SECRET,
                                 code,
                                 ClientCredentials.REDIRECT_URI).execute();
-                            CredentialStore credentialStore =
-                                                    new CredentialStore(prefs);
+                            PersistentStore credentialStore =
+                                                    new PersistentStore(prefs);
                             credentialStore.write(accessTokenResponse);
                             finish();
                         } else if (url.indexOf("error=")!=-1) {
-                            new CredentialStore(prefs).clear();
+                            new PersistentStore(prefs).clear();
                             finish();
                         }
                     } catch (IOException e) {