diff options
author | Fred Quintana <> | 2009-04-08 19:14:54 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-08 19:14:54 -0700 |
commit | 6eb6e8b983ba4ccc4b7ea4dff9e05574f480e7c2 (patch) | |
tree | 4bdc4d5ff42e279cd807bc98e000ca71fc6dca44 /phone/com/android/internal/policy/impl/LockPatternKeyguardView.java | |
parent | 312b2864f8f5c56b038e7e36a7d659a564ebf41b (diff) | |
download | base-6eb6e8b983ba4ccc4b7ea4dff9e05574f480e7c2.tar.gz |
AI 145177: phase two of the AccountManager
- added an AccountManagerActivity, a base Activity that can be
used by activities that are launched by AccountAuthenticator
intents. This makes it easy for an Activity to send a result
using an AccountAuthenticatorResponse
- added debug strings to the AccountAuthenticatorCache
- improved the API for the AccountAuthenticatorResponse and
made it Parcelable so that it can be passed to an Activity
via an Intent
- changed the AccountManager to use Futures for the
asynchronous calls and to notify the user via a callback
when the request is complete
- changed the AccountManager to convert any errors that are
returned into Exceptions
- added constants for the error codes that are passed across
the IAccountManagerResponse and
IAccountAuthenticatorResponse interfaces
- added a dump() method to the AccountManagerService so that
it can display the list of active sessions and registered
authenticators
- added an way to interrogate the AccountManagerService for
the list of registered authenticators
- removed more methods from the GoogleLoginServiceHelper and
GoogleLoginServiceBlockingHelper and changed the callers to
use the AccountManager
Automated import of CL 145177
Diffstat (limited to 'phone/com/android/internal/policy/impl/LockPatternKeyguardView.java')
-rw-r--r-- | phone/com/android/internal/policy/impl/LockPatternKeyguardView.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/phone/com/android/internal/policy/impl/LockPatternKeyguardView.java b/phone/com/android/internal/policy/impl/LockPatternKeyguardView.java index 12e735a..486f364 100644 --- a/phone/com/android/internal/policy/impl/LockPatternKeyguardView.java +++ b/phone/com/android/internal/policy/impl/LockPatternKeyguardView.java @@ -149,9 +149,7 @@ public class LockPatternKeyguardView extends KeyguardViewBase { KeyguardWindowController controller) { super(context); - AccountManager accountManager = - (AccountManager)context.getSystemService(Context.ACCOUNT_SERVICE); - mHasAccount = accountManager.blockingGetAccounts().length > 0; + mHasAccount = AccountManager.get(context).blockingGetAccounts().length > 0; mRequiresSim = TextUtils.isEmpty(SystemProperties.get("keyguard.no_require_sim")); |