diff options
author | Trevor Johns <trevorjohns@google.com> | 2013-03-06 14:46:47 -0800 |
---|---|---|
committer | Trevor Johns <trevorjohns@google.com> | 2013-03-06 14:46:47 -0800 |
commit | 58a54cb3805e219b2d0a76cd8b9df9b33e41e0d0 (patch) | |
tree | 4cdd249a419ff1f34b30ec411aac83fe09c8a8f5 /docs/html/training | |
parent | 23513a2c856c1810e10425bcec4296df2be01584 (diff) | |
download | frameworks_base-58a54cb3805e219b2d0a76cd8b9df9b33e41e0d0.zip frameworks_base-58a54cb3805e219b2d0a76cd8b9df9b33e41e0d0.tar.gz frameworks_base-58a54cb3805e219b2d0a76cd8b9df9b33e41e0d0.tar.bz2 |
[docs] Fix issue #8288695: Typo in OAuth2 training
There's a typo in the "Authenticating to OAuth2 Services" training
class, under "Request an Auth Token... Again" (#RequestAgain).
The call to result.get() will fail, because AccountManagerFuture
doesn't support this method. Instead, getResult() needs to be
called first.
Change-Id: Ia25b9364cd14180cf7ddac50057a2ec03e01ed1f
Diffstat (limited to 'docs/html/training')
-rw-r--r-- | docs/html/training/id-auth/authenticate.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/training/id-auth/authenticate.jd b/docs/html/training/id-auth/authenticate.jd index 592fe1c..c316af7 100644 --- a/docs/html/training/id-auth/authenticate.jd +++ b/docs/html/training/id-auth/authenticate.jd @@ -179,7 +179,7 @@ private class OnTokenAcquired implements AccountManagerCallback<Bundle> { @Override public void run(AccountManagerFuture<Bundle> result) { ... - Intent launch = (Intent) result.get(AccountManager.KEY_INTENT); + Intent launch = (Intent) result.getResult().get(AccountManager.KEY_INTENT); if (launch != null) { startActivityForResult(launch, 0); return; |