commit | c7bcc935c9e854fd315d3ed92efa7abbdda62f50 | [log] [tgz] |
---|---|---|
author | Daisuke Miyakawa <dmiyakawa@google.com> | Tue Nov 02 13:54:06 2010 -0700 |
committer | Daisuke Miyakawa <dmiyakawa@google.com> | Tue Nov 02 13:54:06 2010 -0700 |
tree | fd9b225e599fc1554b8a2a3fd7029844e4b3fb29 | |
parent | e6348271633ad9c18826b5c8f9565144336d71f7 [diff] |
Add logs telling us the number of available Accounts. Bug: 3127620 Change-Id: I44789e9a129f886ec701ed8a3fc61671576f1549
diff --git a/src/com/android/contacts/util/AccountSelectionUtil.java b/src/com/android/contacts/util/AccountSelectionUtil.java index 6609a87..b27b32c 100644 --- a/src/com/android/contacts/util/AccountSelectionUtil.java +++ b/src/com/android/contacts/util/AccountSelectionUtil.java
@@ -90,6 +90,8 @@ final AccountTypes sources = AccountTypes.getInstance(context); final List<Account> writableAccountList = sources.getAccounts(true); + Log.i(LOG_TAG, "The number of available accounts: " + writableAccountList.size()); + // Assume accountList.size() > 1 // Wrap our context to inflate list items using correct theme
diff --git a/src/com/android/contacts/vcard/SelectAccountActivity.java b/src/com/android/contacts/vcard/SelectAccountActivity.java index eb19673..e9127e9 100644 --- a/src/com/android/contacts/vcard/SelectAccountActivity.java +++ b/src/com/android/contacts/vcard/SelectAccountActivity.java
@@ -72,6 +72,8 @@ return; } + Log.i(LOG_TAG, "The number of available accounts: " + accountList.size()); + // Multiple accounts. Let users to select one. mAccountSelectionListener = new AccountSelectionUtil.AccountSelectedListener(