From 58a54cb3805e219b2d0a76cd8b9df9b33e41e0d0 Mon Sep 17 00:00:00 2001 From: Trevor Johns Date: Wed, 6 Mar 2013 14:46:47 -0800 Subject: [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 --- docs/html/training/id-auth/authenticate.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/html') 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; -- cgit v1.1