diff options
Diffstat (limited to 'src/clojure/io/cons')
-rw-r--r-- | src/clojure/io/cons/carddav_sync/authenticator.clj | 10 | ||||
-rw-r--r-- | src/clojure/io/cons/carddav_sync/authenticator_activity.clj | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/clojure/io/cons/carddav_sync/authenticator.clj b/src/clojure/io/cons/carddav_sync/authenticator.clj index c8bd349..d158494 100644 --- a/src/clojure/io/cons/carddav_sync/authenticator.clj +++ b/src/clojure/io/cons/carddav_sync/authenticator.clj @@ -3,7 +3,9 @@ (:import android.accounts.AccountManager android.content.Intent android.os.Bundle - io.cons.carddav_sync.authenticator_activity) + [io.cons.carddav_sync + authenticator_activity + SplashActivity]) (:gen-class :extends android.accounts.AbstractAccountAuthenticator :state context @@ -16,10 +18,12 @@ (defn -addAccount [this response accountType authTokenType requiredFeatures options] (log-i "addAccount") - (let [intent (Intent. (.context this) authenticator_activity) + (let [selector (Intent. (.context this) authenticator_activity) + intent (Intent. (.context this) SplashActivity) bundle (Bundle.)] - (.putExtra intent AccountManager/KEY_ACCOUNT_AUTHENTICATOR_RESPONSE + (.putExtra selector AccountManager/KEY_ACCOUNT_AUTHENTICATOR_RESPONSE response) + (.setSelector intent selector) (.putParcelable bundle AccountManager/KEY_INTENT intent) bundle)) diff --git a/src/clojure/io/cons/carddav_sync/authenticator_activity.clj b/src/clojure/io/cons/carddav_sync/authenticator_activity.clj index 4e23d63..1b3e496 100644 --- a/src/clojure/io/cons/carddav_sync/authenticator_activity.clj +++ b/src/clojure/io/cons/carddav_sync/authenticator_activity.clj @@ -12,4 +12,4 @@ (on-ui (set-content-view! this (make-ui [:linear-layout {} - [:text-view {:text "Hello from Clojure!"}]])))) + [:text-view {:text "Authenticator"}]])))) |