History log of /frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d16778efdf46fa80a309456b722b333ec3e6756 12-Sep-2012 Jatin Lodhia <jlodhia@google.com> Update account list on account picker activity resume

Activities which help select an account gather the list of accounts only during create and dont update it agian. When a user moves out of the account selection activity by clicking home page, deletes an accout in the background and comes back to the earlier accout selection activity, the deleted account still exists as an option. This cl fixes this by updating the account list on resume.

Bug: 7135608
Change-Id: Idc9a2fa6451b032310c0ad66f6db0e2f0967feeb
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
6cab5e823a0053c60576c65cd307c865512eac38 01-Jun-2012 Alice Yang <alice@google.com> Fix bug where existing account not pre-checked

The fix was to call ListView.setItemChecked()
instead of ListView.setSelection() for setting radio button status.
Also refactored the code a bit so it's less verbose.

Bug 6588533

Change-Id: I8add072a0277183baec7c0d5634a28f2d3a28c5e
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
727c599454b1e280a237b10fea4dd7f7cb1096e0 29-May-2012 Alice Yang <alice@google.com> New UI for account picker

- Added radio buttons to indicate the selected item
- "Add account" is one of the list options instead of a button
- Removed icons
- Added "Cancel" and "OK" buttons
- Use dialog theme
- Omit description text by default

Bug 6505441

Change-Id: I672a11481ee99e183142142bddf8f97b7b149d37
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
cf0a881f1c27718f686a307e6c94213815ee9dc1 17-May-2012 Carlos Valdivia <carlosvaldivia@google.com> Streamline the logic to add account.

This cl ensures that we immediately route the user to the add account
activity if they don't have an account and their is only one relevant
account type. Also reordered the setContent logic to reduce flicker.

Note that as of this CL there is still some flicker remaining when
launching G+ without an account. But it appears to be fixed in other
apps.

Bug: 6455975
Change-Id: I91e33b4fb9618a31765b4a8651334b1c52640828
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
2becf93d275a1e678abedd16b88225d6cecf49e2 16-Nov-2011 Fred Quintana <fredq@google.com> When in the Choose Account flow if the accounts list display was initially
skipped if the user cancels out of adding an account the flow itself should
be canceled rather than showing the accounts list display.

Bug: 5599693
Change-Id: I5075e86656e237dddcb5e1d76e432e1cf525ab79
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
01df6a8ee2fd0ec76bddaaa2e3e66f6e9748a4ce 18-Oct-2011 Fred Quintana <fredq@google.com> fix bug where the instance saving of the ChooseTypeAndAccountActivity
would only work in the case where onSaveInstanceState was called.

- combined mExistingAccounts and mSavedAccounts into one field
- set this field when starting the addAccount request
- write this to the instance state if the request state
is ADDING_ACCOUNT
- read this field from the instance state, if any,
when the request state is ADDING_ACCOUNT

Bug: 5459669
Change-Id: I5a7b4943de8e706cc8a21ff9f54fce4258f18b19
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
e9095bd73795e3cf55cbeebaa5745f68b69819ab 12-Oct-2011 Fred Quintana <fredq@google.com> reworked the flow in the account chooser
- resilient to the chooser activity being killed due to memory pressure
- back now goes back to the main chooser screen rather than canceling
it completely

Bug: 5358896
Bug: 5381201
Bug: 5387749

Change-Id: I10e76013b2cceffc37ea891746533d6a08f279b7
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
9bbdd0bf5006512a000b0d3e6bd6ee2998a2e48b 28-Sep-2011 Fred Quintana <fredq@google.com> Fix a bug in the account chooser where relaunching an in-progress flow
results in a blank screen.

The fix involves making the first activity just call the account
type chooser to get the account type to add, rather than having
the account type chooser also kick off the AccountManager.addAccount()
request itself. Instead the first activity will get the type
back and then call AccountManager.addAccount()

Bug: 5346810
Change-Id: I4a0cf2370971b98f8ee0910f5401d97e999e546b
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
a77253a417e885f87280901a3519412262758412 20-Sep-2011 Fred Quintana <fredq@google.com> An extra is being written as one type and read as the wrong type.

Bug: 5342556
Change-Id: I664bd84546cb8da2936c5afe65381336a97ef5cd
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
b04fe4e82abb073b4e5d82563b0882cea0dcc139 17-Sep-2011 Fred Quintana <fredq@google.com> Continuation of the unified account chooser flow.

- made the UI match the spec
- added ability to force the account chooser to appear
- added ability to pass in a description that will override the stock one
- added ability to pass in requiredFeatures for addAccount
- added ability to pass in an authTokenType for addAccount

Bug: 5293377
Change-Id: I243c0fd6598c943b1f65753e1f5d3c86629f64f5
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java
1121bb5e6ff20a2c694225300507ed486e04fea2 15-Sep-2011 Fred Quintana <fredq@google.com> Add a generic account chooser/add account flow for apps.

The activity is launched as follows:
Account account1 = new Account("account1@gmail.com", "com.google")
Account account2 = new Account("account2@gmail.com", "com.google")
ArrayList<Account> accounts = new ArrayList<Account>();
accounts.add(account1);
accounts.add(account2);
String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
Bundle addAccountOptions = null;
Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
accountTypes, addAccountOptions);
startActivityForResult(intent, 0);

Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
/frameworks/base/core/java/android/accounts/ChooseTypeAndAccountActivity.java