History log of /packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
606213ea022c75e156249c37d4374e8ceb4d2340 08-Sep-2014 Martin Hibdon <mhibdon@google.com> Fix the text of the authentication label on rotation

b/17410251

Change-Id: I1e902da85a8525e597d205d3be520e6eb6db7f50
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
f1789afa535b113047ef20623d79fdfb257537aa 07-Aug-2014 Tony Mantler <nicoya@google.com> Switch null checks to TextUtils.isEmpty()

b/16872654

Change-Id: Ib8943f068ad6988ff08f8bfd54e2df8fa5ce0274
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
b63b39d03e2b1f5ea3998459d1ba96124316d907 19-Jun-2014 Martin Hibdon <mhibdon@google.com> am 9c0463e6: Don\'t offer oauth unless we have at least one provider

* commit '9c0463e6b485b3b50d9c6f110a9ece650cd4a692':
Don't offer oauth unless we have at least one provider
9c0463e6b485b3b50d9c6f110a9ece650cd4a692 19-Jun-2014 Martin Hibdon <mhibdon@google.com> Don't offer oauth unless we have at least one provider

In the AOSP version of the email app, we don't by default
have any oauth providers. We should not display option
to set up your account with OAuth.

Change-Id: I6fc55ae4852ec76b7c34c09ac58a0e06e89affa7
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
5da2f12dc5b180195f2849738bbce47fcd875d2d 10-Jun-2014 Tony Mantler <nicoya@google.com> Make incoming settings username editable

And get rid of that annoying "you can't edit this" info text bubble

Change-Id: I7efc039b39be292512f25bd5470b7ae36927c8f3
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
f765f9b976222a8a0e45d4b04883566ecf355937 05-Jun-2014 Tony Mantler <nicoya@google.com> Clean up cert activity handling

Fix re-displaying the dialog on orientation change b/5622284
Add host/port when available b/4988512
Disambiguate intent between AOSP and EmailGoogle

Change-Id: Ideeda20dfd9bd0070998ccf42d8042765866ca0e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
8989dfa5e7213a42362b3bbdf865b46dab5a5012 24-Apr-2014 Tony Mantler <nicoya@google.com> Fix cancel handling in account settings screens

- Don't loop on the confirmation dialog
- Do a deep copy of the initial hostauth state
- Save the initial hostauth state on configuration changes
- Collect the user input before comparing the old state with the new

b/14285245

Change-Id: Ibc033fac525be2a4cb03c6a0d1e92254a2236b4c
(cherry picked from commit 294593c5f592f4eec6994909cca60450936a0812)
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
294593c5f592f4eec6994909cca60450936a0812 24-Apr-2014 Tony Mantler <nicoya@google.com> Fix cancel handling in account settings screens

- Don't loop on the confirmation dialog
- Do a deep copy of the initial hostauth state
- Save the initial hostauth state on configuration changes
- Collect the user input before comparing the old state with the new

b/14285245

Change-Id: Ibc033fac525be2a4cb03c6a0d1e92254a2236b4c
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
91eec1a519562149fff96e37299f492d25a49551 23-Apr-2014 Martin Hibdon <mhibdon@google.com> Use the correct string for the password label

b/14257168

Change-Id: I08a73bbb91bd4f897617617b67cf51fe4f0c2b7f
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
8b063aa9797dae585b98be97ad6f503404bc78f7 23-Apr-2014 Martin Hibdon <mhibdon@google.com> Fix a typo I introduced in a previous change

b/14257168
In this CL I changed the name of a string, but missed one
place where it was references.
https://googleplex-android-review.git.corp.google.com/#/c/453472/

Change-Id: I7d943a2209f2defb6f0eb846b6f361a08f40f756
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
2172ac410add578021715d34a92c1bcaff4f3560 11-Apr-2014 Martin Hibdon <mhibdon@google.com> Merge "Correctly initialize the authentication view" into ub-mail-algol
12e7d101e8720e2ee4be67c42db031246c18adaa 11-Apr-2014 Martin Hibdon <mhibdon@google.com> Correctly initialize the authentication view

b/13961322

Change-Id: I96067b30c54131cc65a0282b118f9821d363113b
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
c83366c88770f336a8e9976af42389c616de0b62 11-Apr-2014 Tony Mantler <nicoya@google.com> Fix some crashes and misbehavior with account settings screens

b/13954490

Change-Id: Ic81b342495a46573cb1fe78cad1f4888fffc4ae8
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
6cbdd5bba0c9c68a3261e54b1cebff48459657d5 05-Apr-2014 Tony Mantler <nicoya@google.com> Fix more IME actions

b/13544189

Change-Id: I5dbbf45a1b68cac2d63ba41c70daff9d33cbb492
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ae980cd685a867b3fecfd38c876fd18d98b7c86b 18-Mar-2014 Tony Mantler <nicoya@google.com> Account setup flow: Move button and headline handling into fragments

b/13508015

Change-Id: I9f7a09467fbee5a57985f36eaa47c2cc7b9d4086
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
5ca9d39008aee33a85314759103ffc247a3b406c 12-Mar-2014 Tony Mantler <nicoya@google.com> Merge "Centralize EmailServiceInfo retreival and pre-fill data for autodiscover" into ub-mail-master
6ecdc1845778367f3c72d8f31cc63026539004d7 10-Mar-2014 Tony Mantler <nicoya@google.com> Populate certificate picker when a cert is present

Motorola: IKXREL1KK-816
b/13398087

Change-Id: I3b69c780a491808afa0cb3717020f42b41c1c0d7
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
064726d9f9fb7c38a252fc9c4fe2b7cf645eade0 07-Mar-2014 Tony Mantler <nicoya@google.com> Centralize EmailServiceInfo retreival and pre-fill data for autodiscover

b/13341957
b/13356801

Change-Id: I9ed399bd6a695e14cf8019d3f62c7e5753e1f4d8
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
76472ae40cd55d17edb0420e8fc2a7bae60c50de 13-Feb-2014 Tony Mantler <nicoya@google.com> Merge setup fragments under a single activity

Change-Id: I10cf8bb9f6bc1a26ea97ae664f0196ae9e9493b5
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
719097387788a32256cfcc3c0a96eff7f170078f 18-Feb-2014 Martin Hibdon <mhibdon@google.com> Fix authentication view

Unfortunately, there are problems with making a single
view handle all kinds of authentication and certificate
selection. The layouts for the account settings screen
on phones versus tablets are just too different. So
now the certificate selection code has moved back to the
fragments themselves, and the authenticationView only
handles passwords and oauth.

Change-Id: I1ef0c69687a00029717b836458c85c1b0667ff95
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
87de90282bc7f00c154be460c66cef999072b555 14-Feb-2014 Martin Hibdon <mhibdon@google.com> Make settings flow work for OAuth

Now the password entry is removed from AccountSettingsBasics,
and the user is taken to either SignInActivity or AccountSetupType
after hitting the next button. This is a lot closer to the
desired setup flow as it allows for oauth signin.

Ideally this is not what we will ship for Algol, but it put us
in a state where we could ship if we had to.

Change-Id: I5b28bccd27c515572e4947ca877bd1772732507d
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
58fbd2a47729bd21b5e3001c76bd0723ea868728 31-Jan-2014 Martin Hibdon <mhibdon@google.com> Add sign in Activity

This allows the user to choose which type of authentication
to use for existing IMAP accounts.

Change-Id: Ib44364a1059a2c4b8a7a0fa66b14cd042b28770e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
78280d51db73914549eb178a02c1af4d2c1f7d92 31-Jan-2014 Martin Hibdon <mhibdon@google.com> Merge "Use the AuthenticationView for outgoing" into ub-mail-master
97552673364f914f0052d3c07e96c74ecdde4301 30-Jan-2014 Martin Hibdon <mhibdon@google.com> Use the AuthenticationView for outgoing

Change-Id: I42a6a8e0dfb271f22bbf1d2d18138d27809744bc
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
d23fa61a014fc567592592eac629680764f042b5 30-Jan-2014 Martin Hibdon <mhibdon@google.com> Make certificate selector work

Change-Id: Id1ae8c9bb9467effc8feca9d915dc4927c4bbe25
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
26ff609ebff3ef0f5ff841eb5d78c11edf8f0936 30-Jan-2014 Martin Hibdon <mhibdon@google.com> Fix a crash trying to use AuthenticationFragment

Putting authentication in a fragment was a problem, it
means that we need fragments as children of other fragments.
While this works in theory, it adds a lot of complexity.
Now, authentication is done with AuthenticationView,
which is just an extension of LinearLayout.
Currently, this does not yet handle adding certificates
for exchange accounts, but I'll fix that ASAP. As it is,
this is better than the current state, which crashes on
account setup 100% of the time.

Change-Id: I4274e7250f97012c3dc476003fd36fb960f2b728
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
9195a1202483053606f43e871915a5405e955306 22-Jan-2014 Martin Hibdon <mhibdon@google.com> Create AuthenticationFragment

This is one fragment that holds all types of
authentication information, e.g. password,
OAuth info, and client certificates. What gets
displayed depends upon the type of account it is
dealing with.
So far this is only used in AccountSetupIncoming,
but later it can be added to other settings fragments.
There are still some issues with this, but I'd like
to check it in sooner than later to unblock other
work.

Change-Id: Iea675ad5c1727f32ca0baa270dfa793ab7109993
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
9c8c471f971f9c8e40002503a0799ce56c5bfd76 06-Dec-2013 Tony Mantler <nicoya@google.com> Convert SetupData into a retained fragment

This will keep it from being recreated quite as much while off-thread tasks are possibly mutating it.

Change-Id: Ic9873489906339c33a76b8a600c0fc28016debc4
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
9d3e01c589e1f281941cff9abc59aba0b0f33e78 27-Sep-2013 Martin Hibdon <mhibdon@google.com> Set the client cert from AccountSetup

b/9661767

Change-Id: I292ff5e190ed56077a04e37869e18a46f5473985
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
463584d23f747cfbbd9856b39390269342363b41 25-Sep-2013 Tony Mantler <nicoya@google.com> Fix account matching at initial screen to match against email address

b/10210901

Change-Id: I64d60ca33a42a19e085dd98a7a61d68ac30027f9
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
648a067056db91d4a1bfd3c4eac9eec3d4c6adb4 18-Sep-2013 Tony Mantler <nicoya@google.com> Fix use-after-null in AccountSetupIncomingFragment

b/7967233

Change-Id: I69b7ea521416815fce3bb9e45b38c996b9cea17b
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ecac654c6666072d3ed9627f0524fa46ea8c03fc 12-Sep-2013 Tony Mantler <nicoya@google.com> Purge views after they're supposed to be destroyed to avoid spurious callbacks

b/10565885

Change-Id: I7ef18fdac566975d15ffd1a19f756a5e5d2aee8a
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
26cd5e024c6af8ff9c8558325dd0930c9aacb370 31-Aug-2013 Tony Mantler <nicoya@google.com> Don't store the account creation/modificaiton state in a singleton

b/10460757

Change-Id: I7f0bea69f843f9061d1cfa9277c99d36705aceaf
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ed4accb24facd1324948abc61b0791eb3dc97cc4 23-Aug-2013 Tony Mantler <nicoya@google.com> Clean up warnings, finals, dead and useless code

Change-Id: I8225a78c3b1712479bb5752161e3585a2bc2be2e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
219c3b5b8474bc0b95a9dcab21067ff603fccb15 22-Aug-2013 Tony Mantler <nicoya@google.com> Tidy up warnings in account setup fragments

Change-Id: I078df83dbc4afd10c0783a98bfbb23bced12489c
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
7985b43ab7310f76c170266da346f993d2f86051 14-Aug-2013 Paul Westbrook <pwestbro@google.com> Add public no-arg Fragment constructors

Bug: 10311630
Change-Id: I0243462cdc28b9af3151754a8c8583330418579b
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
560bfadc3151f7a06f3b06e9a6c92cfa534c63ec 26-May-2013 Scott Kennedy <skennedy@google.com> Unify LogTag

There is now only one LogTag class. The static initializer of
GmailApplication (existing) and EmailApplication (new) will now set
the log tag to "Gmail" and "Email", respectively. Up until that code
is run, it will be "UnifiedEmail".

"setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to
be printed as long as they go through LogUtils, regardless of what tag
is used by that individual log. This lets us still turn on logging
everywhere in one command, but also lets us use more descriptive tags
(like the class name).

And since we no longer have three com.android.mail.utils.LogTag
classes, builds will be much easier.

Also, we now use LogUtils everywhere.

Change-Id: I55f1c7a66ce50ead54877a13e40256422a56dc39
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
28a344042d0f8353d2e5c15fe3951c1e0520f1b7 23-Mar-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

Also add additional logging for this case

Bug: 8372753
Change-Id: I87aa9ee46f0ca866745d62d27f4b40913f2e9b97
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
f419287f22ae44f25e1ba1f757ec33c7941bbfa8 28-Jun-2012 Marc Blank <mblank@google.com> DO NOT MERGE: Move emailcommon2 sources to emailcommon

Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ceca4751b26b5da91cd8b2038a679be214d3b7db 02-Dec-2011 Mindy Pereira <mindyp@google.com> Make sure to check for a null account before using the account.

This is a common root cause with monkey crashes.

Fixes b/5628984 com.google.android.email: java.lang.NullPointerException: Unable to start activity ComponentInfo{com.google.android.email/com.android.email.activity.setup.AccountSetupIncoming}: java.lang.NullPointerExceptionat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)

Change-Id: Ib3ac5c62b72662402c7d5df4e5d895beaf324197
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
3432bdb757c4195fb4726c8b401f2261e78d75a7 27-Sep-2011 Ben Komalo <benkomalo@google.com> Fix focus behavior in setup screens.

- properly put actionNext on most fields
- make sure actionDone doesn't do funky things with focus so that a
non-editable field gets focus. we may want to consider not making this
focusable in the future.

Bug: 5367827
Change-Id: I4e7bb13801d96a4f1e6fd02a2d43713200738b18
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
81a5ba47c67c75e92772bf8adb04a5361fc79b91 27-Aug-2011 Marc Blank <mblank@google.com> Be careful before setting account's delete policy

* We were using the getSelectedItem() from the deletion spinner to
set the account's deletion policy, even if that spinner was
invisible (which it would be for IMAP).
* The result of this is indeterminate; sigh
* The fix is to make sure the spinner is visible before using its
value

Bug: 5216422
Change-Id: I7e44b5e8127f5277693f7e962899e8642be55239
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
5125c06cef67447a0ef5881d8fbfd6b73e1dfd0a 01-Aug-2011 Ben Komalo <benkomalo@google.com> Save IMAP prefix.

Bug: 4517078
Change-Id: I4f4a1e490abc78088ec8ded4e4627e5da1ac3fd2
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
1086830bae3d16026136fc40e926eb26e47e449e 16-Jul-2011 Jorge Lugo <jlugo@google.com> Merge "Improve accessibility for stars and settings"
7667632eb24653ef208261651298996f5fdf6911 08-Jul-2011 Jorge Lugo <jlugo@google.com> Improve accessibility for stars and settings

Adding and removing a star triggers the appropriate accessibility
In incoming/outgoing settings, added EditText contentDescriptions.

Change-Id: Ibab461f1425b3ebf3579ebc1d0b36d1a9a5efdb2
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
cf194df05c31045ec734ace84ce2b739639bf12e 24-Jun-2011 Jorge Lugo <jlugo@google.com> Don't display warning message on edit incoming settings

On phones, opening "incoming settings" no longer immediately displays
the warning message associated with editing the username field. It now
only displays when the username is focused by the user.

Bug: 4282856
Change-Id: Ic0a74fa91a0f9cff66565372872e182a0eaec779
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
6fea021e3dbe71aaa93512aba699d1bfda3d520d 29-Jun-2011 Marc Blank <mblank@google.com> Remove redundant and unused constants

Change-Id: Ie8658f86737880e3127a0a2c3b7f0557dde98b29
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ce4cce05b2ee5ea2d9629c189a79f7f30778f534 21-Jun-2011 Makoto Onuki <omakoto@google.com> Fix failing tests

Fixed activity tests and and activity.setup tests.

Bug 4762098
Bug 4766087
Bug 4590590

Change-Id: Ifbd49f38c59854c65b6c48a1b03ca8153bfa558b
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
69111b1e19456c4e861b031da3b3b7f26893d664 12-Jun-2011 Marc Blank <mblank@google.com> Fix broken account creation

* What the heck is mCacheLoginCredential for??

Bug: 4597765
Change-Id: Idcb6d323ba0e90f3fe6828f59fe36ec54e4cf40c
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
85e4c101b014857fe40f87c3837b82564cfc5b6c 08-Jun-2011 Marc Blank <mblank@google.com> Remove storeUri's except during auto-setup

* Remove per-store limitations
* Use constants for VISIBLE_WINDOW, rather than having the
potential for differences between Stores

Change-Id: Idd5e0874bba6e3390e4f093bcb03f4b1bb399c11
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
12b82d9374947c9268217f45befe8a74bd9b60d7 20-May-2011 Ben Komalo <benkomalo@google.com> Move HostAuth to top level class.

No other changes made.

Change-Id: I1c6497c98abc0f99443ea42d8aed6295b263c123
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
bfac9f2e8a13f6c719608a6948203bbef921c99f 13-May-2011 Makoto Onuki <omakoto@google.com> Move some of the log constants from Email to Logging

Change-Id: If9f4e4e3adcdef897a0d6a4e153bb446a8b24fdd
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
0993190cafebc107bd27a26996b5d63d4a4ede10 06-May-2011 Marc Blank <mblank@google.com> Complete rewrite of account backup/restore code

* Use EmailProvider to backup/restore into a backup database
* Remove all of the old AccountBackupRestore code
* Get rid of the legacy Account class and all of the Preferences
crap that referenced it
* Remove corresponding tests

Change-Id: I2de75aafdacc87246174303961e58547303f641e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
44f45f4221f5cd681ac3e9596cedb4f0536a1751 31-Mar-2011 Makoto Onuki <omakoto@google.com> Merge "Don't use findViewById (part 1 -- account setup)"
2fbb3db5d86210d03175ce77ff08c989a96c5864 28-Mar-2011 Makoto Onuki <omakoto@google.com> Don't use findViewById (part 1 -- account setup)

Added two new functions:
- UiUtilities.getView()
is a fail-fast version of findViewById(). Crashes when there's no view
- setVisibilitySafe()
same as View.setVisibility, but doesn't crash even if a view doesn't exist

Let's try to avoid the use of findViewById(), and instead use getView(), *right
after* the layout is inflated, so that we'll always fail-fast if a layout
doesn't have a required view. (Rather than getting a NPE only when the view
is really accessed, which can be in a code path which is rarely executed--e.g.
only when there's a protocol error.)

Let's only use findViewById() only when we're sure no all the variants of a
layout have the view in question and leave a comment to make it clear it's on
purpose.

(UiUtilities has been moved from com.android.email to
com.android.email.activity)

Change-Id: I36e0bab65a989f5d34cf636f13e1eaee084547af
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
206109cf44e27e90e4a5208daa289704aa451198 30-Mar-2011 Todd Kennedy <toddke@google.com> Disallow editing username after account creation

After the account is created, don't allow editing the user name. We want to
prevent this as the user name is core to the account and changing the user
name is tantamount to creating a new account.

bug 3502279

Change-Id: I1d89710fd48aca67ba13abea5bdbdc1d87941618
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
fe68c0e7c2672e09076038b36ad24f095633d313 17-Feb-2011 Todd Kennedy <toddke@google.com> Use HostAuth to determine settings changes

There were two TODO's from a prior CL where deprecated HostAuth methods
were removed.

1. Do not use a generated URI to determine if account settings have changed.
Instead, use the HostAuth structure for this purpose.
2. The account key in the HostAuth structure has been deprecated. Remove as
much of it as possible (until the schema of the host auth database changes,
we must still refer to it when adding rows).

In the process, HostAuth tests were broken out into a separate unit test
file.

Change-Id: I4075da09af168f734db7b20a9ef63d4178ac2064
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
8c89674b64f6669fa94bf593abad0f1e2255a812 22-Feb-2011 Todd Kennedy <toddke@google.com> Always set a delete policy for legacy accounts

The delete policy can only be set for POP3 accounts. However, the delete policy
is used for all legacy accounts (that includes IMAP). As such, we need to make
sure IMAP accounts also have their policy set; even though the setting is not
configurable by the user.

The delete policy does not mean anything for Exchange accounts, so, we do not
need to modify the account setup code for them.

bug 3074164

Change-Id: Iab10d2997404b3b0c10a60a64fb652540c0d2d1a
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
040ddf60cfef4aaecf4bfe1f897fce3248d777a4 04-Feb-2011 Todd Kennedy <toddke@google.com> Resolve build warnings; part 5

Remove dependence upon URIs for creating the host auth structure

Change-Id: I92dee36fa329a8976b76bbd4991ed3469c6475f2
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
31d9acbf0623872f9d4a2b3210b5970854b654c7 12-Feb-2011 Marc Blank <mblank@google.com> Email split, part huit: Refactor constants, clean emailcommon

* There are three pieces to this CL (sorry):
1) Move and/or rename some constants into emailcommon
2) Move Utility to emailcommon, moving the few UI
related utilities back into Email (FolderProperties
and UiUtilities)
3) Remove all references to resources from emailcommon
* The three pieces relate in that, between them, they allow
the emailcommon static library to compile cleanly

Bug: 3442973

Change-Id: Ic5e3abaa2a1b36999e0b6653c6c2134ea1bd544f
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
a7bc0319a75184ad706bb35c049af107ac3688e6 10-Feb-2011 Marc Blank <mblank@google.com> Email split, part six: EmailContent

* Moved EmailContent to emailcommon

Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
858c2822777f74947e81476125590ad06bfe4803 20-Jan-2011 Andy Stadler <stadler@google.com> Handle leading/trailing space in passwords

* Allow, but provide warnings via EditText.setError()
* Remove one last instance of password trim()

Bug: 2981433
Change-Id: I406a4f8b8f27cc5ce90424a8cafe88a677e72f45
Signed-off-by: Andy Stadler <stadler@google.com>
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
c890a4e4a2cbb489aea4847cf25368a723586530 13-Jan-2011 Todd Kennedy <toddke@google.com> Display dialog if unsaved settings would be lost

When navigating away from a preferences screen and unsaved settings would be
lost, display a confirmation dialog. The user can either accept or cancel the
action. If canceling, the user is returned to the settings screen they were
currently on. Otherwise, they are taken to a new fragment (the exact
destination depends upon whether the user navigated "back" or selected another
header)

There is one additional change that needs to be made. In the case of navigating
to another header, we are notified _after_ the new header is selected. In this
scenario, the action is not cancelable and the user will lose any changes. We
must display an appropriate message when this happens. [note: this is the same
behaviour as when the user selects a breadcrumb]

bug 3327737

Change-Id: I4bd3b393a6323f3e63510e3ed08e4e1e745b04c4
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
983e1ad53b3ca3105655bf6d961713c61060a7f8 13-Jan-2011 Andy Stadler <stadler@google.com> Make breadcrumbs work in server settings fragments

* Switch to newer startPreferenceActivity API
* Newer API lets us pass a string for the breadcrumb
* Get rid of newInstance() calls in all three server settings fragments

Bug: 3188951
Change-Id: I86ae91d63ff7bd32fa0eab96ac18686bb5e3e313
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
6e71978ec38add2edf3ac5f3dd1f9abeea9c1ab6 07-Jan-2011 Andy Stadler <stadler@google.com> Move account edit save settings off UI thread

* Caught by StrictMode
* The fix prevents ANR
* Removed vestigial cruft from the saveSettingsAfterEdit() implementations

Bug: 3133633
Change-Id: Id41fb74269a2b72cc17121e33684b459d3eec869
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
8d22e85e459df3d94968389852859dacaf2baafe 23-Dec-2010 Andy Stadler <stadler@google.com> Reduce/eliminate DB access in server settings

* Create shared async worker to check for duplicate accounts
* Use it in AccountSetupIncomingFragment
* Use it in AccountSetupExchangeFragment
* Debounce proceed/next button because work is now async
* Also, upgrade leftover old-style code in AccountSetupOutgoingFragment

Bug: 3134666
Change-Id: I5c24a6546d1ab66aedc5c4ac826ddf4f1ff53446
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
9f7e3982ada78ab64e82a797186633684d02dec5 22-Dec-2010 Andy Stadler <stadler@google.com> Reduce UI thread disk access in account settings

This change is in top-level settings for a given account:
* Call saveSettings async on UI changes, instead of synch at onDestroy()
* In loadSettings, get default account id async

Also sprinkled in some TODOs for future whack-a-mole fixes.

Bug: 3133639

Change-Id: I5216c78d28b35fe47e43b48ad0db3a3e57b25004
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
112ed496f817ebeab6b1ee1d5117259ef80342b2 03-Dec-2010 Andy Stadler <stadler@android.com> Update server settings to current look

* For each of incoming, outgoing, exchange fragment, create a "settings
mode" which slightly alters the layout for use in AccountSettingsXL.
* Build a settings mode wrapper layout around the basic fragment
* Add new constructor to set "settings mode" and select layout
* Add wiring for cancel/next buttons in the fragment
* AccountSettingsXL configures each fragment in its settings mode
* Remove old actionbar "Next" options (no longer needed)

TODO: Pixel perfect adjustments, colors, fonts, etc.

Bug: 3188951
Change-Id: Iba26281b214333db301dd40d6c016b6c5a932c2d
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
1f3e117951e5ffe97a30bdd61c1cf99759f15406 23-Nov-2010 Andy Stadler <stadler@google.com> Fix rotation problems in setup/settings

* Fix incomplete tracking of mLoaded flag
* Defer validation on automatic reload of fields (on rotation)
until reconstruction completes and we're ready to do validation.
* (For Incoming only) Split loadSettings into configure and reload phases;
We need to configure the UI every time we restart, but we don't want
to reload & overwrite user-entered values on rotation.
* (For Exchange only) Properly show/hide trust certificates options on
rotation, and show/hide divider too.

Bug: 3170922
Change-Id: If3de30ee2d4d5668b29698af73f545510692777e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
ba4e72a9474bcbe33a8001a1964a02cb41ea08bb 03-Nov-2010 Andy Stadler <stadler@android.com> Cleanup various IMAP/POP manual account setup defaults

These defaults affect manual setup only. There should be no changes
observed in automatic setup, and no changes observed in EAS setup.

* user $email instead of $user as default login
* guess "imap." or "pop3." for server name
* propagate the incoming server name to the outgoing server name, and
replace "imap.", "pop3." or "pop." with "smtp."

Also, fixed a couple of leftover places where we were trimming
passwords (and should not be, since some people insist on having
spaces in their passwords.)

Bug: 2978634
Change-Id: I9b0e345aa9550b5e1cc29aaa22109f03da61af20
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
fb4333b3a5051b08d3a255000bb1b8331e2a1d43 25-Sep-2010 Andrew Stadler <stadler@android.com> Allow spaces in passwords

* Separate/identical fixes for incoming, outgoing, exchange
* Unit tests
* Some protocols will fail anyway (e.g. POP3)

TODO: Some sort of warning (master only - won't backport that)
Bug: 2981433

Change-Id: I82984e5912fc7fcb88e747815d0fe33cb36605e7
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
fd14496c494a0d38c35c3788c9cc55f1984592e4 11-Sep-2010 Andrew Stadler <stadler@android.com> Convert setup to use checker fragment

* Activities modified to use new check-settings fragment:
* AccountSetupBasics (auto-setup for imap/pop)
* AccountSetupIncoming
* AccountSetupOutgoing

Next CL: Same work for exchange, and terminate old CheckSettings activity.

Change-Id: If5c5bfe331161b2429f7d7a4bd13290932f03c47
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
55110ca1ad8ce48a5429f9f351d013691c10b806 08-Sep-2010 Andrew Stadler <stadler@android.com> CheckSettings as a true fragment

* Create new retained fragment + asynctask as the worker
* Stateless dialog fragments for everything else (progress & errors)
* Used for account settings, incoming & outgoing, only so far

TODO: Support for account setup workflow
TODO: Support for autodiscover workflow
TODO: Remove old checker activity when complete

Change-Id: I1fdafa1a51c53b934e59ea4af7d3e0ac24a3da17
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
1a5e1e159352f6e21bde878eebca3e3a1896045c 03-Sep-2010 Andrew Stadler <stadler@android.com> Use real fragments for incoming/outgoing/exchange settings

* From account settings, switch to incoming/outgoing/eas fragments
* Show "Next" button in actionbar (may be dup'd in single-pane view)
* Common base class for in/out/eas fragments
* Depends on PreferenceActivity.startPreferenceFragment(), new API
* If the user clicks an account header while editing server settings,
present a dialog before discarding the changes that haven't been
checked yet.
* Confirm working (if a bit ungainly in appearance) on phone screen

Change-Id: I03591b9a8ffd11fe26fc6f58a5698740e61d0090
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
7b5c5cf2a993d68bb8fe1a65bde3184e8d59c10f 16-Aug-2010 Andrew Stadler <stadler@android.com> Use new fragment API features for dialog fragments

* Use fragment arguments for dialog parameters
* Use target fragments to report ok/cancel

Change-Id: Id2a4cc91b1f589273b1000dca30e8c2feff6d32e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
faaa115e1a52eda9e675f9da5982c7a52b382336 11-Aug-2010 Andrew Stadler <stadler@android.com> Fragmentize outgoing settings (SMTP)

Also fix a small NPE in AccountSetupIncoming

Change-Id: I5728a10889a3f0f35d31962f4a13ccae4ec0393b
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
1b156352f3fc160da5ba050c2437bcd1c995b326 10-Aug-2010 Andrew Stadler <stadler@android.com> Fragmentize Incoming settings (IMAP/POP server)

Also, extract DuplicateAccountDialogFragment for reuse.

Change-Id: I042a158e264d949024347d477d6e9ec999c244d3
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java