Commit Graph

5355 Commits

Author SHA1 Message Date
Todd Kennedy
87f9b376a8 Only use one line of text for the shortcut list
The list used to contain both the display name (whatever special name the user
chose during account creation) and the email address. The new mocks only use
the display name.

Change-Id: I97f4f16af9865207f26e67aed5d07340775ea37c
2011-05-24 09:23:43 -07:00
Todd Kennedy
1e3c6d9788 use a fragment for the shortcut picker
instead of using an activity (which will be hard to manage multiple screens in
the 'back' stack), use a fragment. we can easily manage multiple fragments with
a fragment transaction.

Change-Id: Ibf75dd45941a0c1c6b6b6add8de78146cdae7c65
2011-05-24 07:35:22 -07:00
The Android Open Source Project
450db23c1c Reconcile with gingerbread-release honeycomb-release
Change-Id: Idc6e788621e2e3e809058e65f548935a176170e9
2011-05-20 13:58:38 -07:00
Ben Komalo
ee97468feb Fix typo in settings.
This was causing a crash in settings when opening an incoming settings
fragment after initial setup.

Change-Id: Icedd24a3f5e8f378d6725a09c97525450ef74af7
2011-05-20 11:52:13 -07:00
Makoto Onuki
c5bbf134ea Merge "Show a toast for stale shortcuts." 2011-05-19 16:32:25 -07:00
Ben Komalo
b535e436f3 Merge "Move HostAuth to top level class." 2011-05-19 16:28:18 -07:00
Makoto Onuki
c1ca222b75 Show a toast for stale shortcuts.
Change-Id: Ibd7b9ae6a39169604136faafc1a7f87876ba55a1
2011-05-19 16:24:47 -07:00
Ben Komalo
12b82d9374 Move HostAuth to top level class.
No other changes made.

Change-Id: I1c6497c98abc0f99443ea42d8aed6295b263c123
2011-05-19 15:28:48 -07:00
Makoto Onuki
d531dc3058 Fix opening Starred mailbox.
We need to pass around the account ID with onMailboxSelected too.
(It's kinda sad it wouldn't have happened if we had par-account starred
mailbox.)

Also made sure MailboxListItem.mMailboxId now really contains only a mailbox
ID.  Before this chage, we stored an account ID to this for an account row
on the combined mailbox.

Bug 4452811

Change-Id: I732fd8eb18f787f4a700a45a40768f96e3bb8751
2011-05-19 15:10:51 -07:00
Makoto Onuki
2ed7a86949 Support pre-HC style account shortcuts
Account shortcuts used to point at MessageList directly with a
content://com.android.email.provider/account/ACCOUNT-UUID URI.

Hook these intents and open Welcome instead.

On Eclair and before, we stored an account-ID directly as an extra,
but this style is no longer supported.

Bug 4208879

Change-Id: I9fecb0723743377a6d7c7e84626e8613f2356492
2011-05-19 13:47:25 -07:00
Marc Blank
182caacd47 am 89fe584f: (-s ours) am 5d9f9a41: (-s ours) am f39645cc: DO NOT MERGE: Work around framework bug related to service start
* commit '89fe584fbf1376d82db4daa0f427b085b2204bfb':
  DO NOT MERGE: Work around framework bug related to service start
2011-05-19 11:11:35 -07:00
Marc Blank
89fe584fbf am 5d9f9a41: (-s ours) am f39645cc: DO NOT MERGE: Work around framework bug related to service start
* commit '5d9f9a41b27442238de36c41f30945af9dfcdc36':
  DO NOT MERGE: Work around framework bug related to service start
2011-05-19 11:04:56 -07:00
Makoto Onuki
973c3402d0 Merge "Change to Mailbox/MessageListFragment" 2011-05-19 11:03:19 -07:00
Marc Blank
5d9f9a41b2 am f39645cc: DO NOT MERGE: Work around framework bug related to service start
* commit 'f39645ccef07a272d42b902c1558c5067ca249c3':
  DO NOT MERGE: Work around framework bug related to service start
2011-05-19 10:56:07 -07:00
Makoto Onuki
01bd33f318 Change to Mailbox/MessageListFragment
- MailboxListFragment.Callback.onMailboxSelected is now split into
  two different callbacks, one for regular selection and the
  other for DnD for clarity.
- Added onDragStarted/Ended to MessageListFragment.Callback
- Changed Log to use this

Change-Id: I8861d3b43aa1b5b17c68c53605270e99733599f4
2011-05-19 10:51:12 -07:00
Marc Blank
f39645ccef DO NOT MERGE: Work around framework bug related to service start
Bug: 4450201
Change-Id: Id49fc4859726600b63a63897966860bc8dc57cda
2011-05-19 10:26:58 -07:00
Ben Komalo
b1c5c75abe am 74cf6fdd: (-s ours) am faaf1e60: Merge "DO NOT MERGE - Email support for 7" devices." into honeycomb-mr2
* commit '74cf6fdd0d8f188ae277f04bb9fa7652a3b24574':
  DO NOT MERGE - Email support for 7" devices.
2011-05-19 08:58:39 -07:00
Ben Komalo
74cf6fdd0d am faaf1e60: Merge "DO NOT MERGE - Email support for 7" devices." into honeycomb-mr2
* commit 'faaf1e60f866dc8dce6267d8e2645aab2fd29f06':
  DO NOT MERGE - Email support for 7" devices.
2011-05-18 18:12:46 -07:00
Ben Komalo
faaf1e60f8 Merge "DO NOT MERGE - Email support for 7" devices." into honeycomb-mr2 2011-05-18 18:08:56 -07:00
Makoto Onuki
92c0d91578 Merge "Clean up Two pane" 2011-05-18 15:14:50 -07:00
Makoto Onuki
49de71e3d2 Clean up Two pane
- Remove bunch of outdated TODOs
- Removed the stack for the back navigation for nested folders.
  Instead, Back/Up will always just navigate to the parent mailbox.
- Two-pane UI controller no longer stores IDs by itself.
  Now it always gets these from installed fragments.
- Added UIController.switchAccount(), which is the same as openAccount
  except it's no-op if the account is already selected.
- Other small clean-ups.

Change-Id: Ie14bc4f4b6b2cf6afb69bc97967c25682d4c7c78
2011-05-18 14:55:44 -07:00
Marc Blank
3f9447a0e1 am b4578815: (-s ours) am 4ad68f6a: (-s ours) am c55e2c88: DO NOT MERGE: Fix serious DST issue with non-DST time zones
* commit 'b4578815e2a287f9d975b8beef1e1546db0e5961':
  DO NOT MERGE: Fix serious DST issue with non-DST time zones
2011-05-18 10:25:06 -07:00
Ben Komalo
9f976e29a0 DO NOT MERGE - Email support for 7" devices.
- use XLarge layout for Large as well in most cases.
- use XLarge portrait behavior for landscape and portrait for message
list collapsing
- some minor tweaks to account setup UI as the XLarge one didn't fit
on large devices with the padding it specified

Change-Id: I2a83e7239019b3feadcabe5fae61f0d13a628471
2011-05-18 10:23:22 -07:00
Todd Kennedy
ff72651145 Clean up shortcut picker
First some cleanup before adding new functionality.

Change-Id: I37339bb8967c2136c8361133d38c2f5ad30ae3e2
2011-05-18 09:59:31 -07:00
Eric Fischer
b212ba8e6b am 4e1a917b: (-s ours) am 9576db71: Import revised translations. DO NOT MERGE
* commit '4e1a917b0ba1e065a82af0720ca3231a0c6aa745':
  Import revised translations.  DO NOT MERGE
2011-05-18 09:21:31 -07:00
Marc Blank
b4578815e2 am 4ad68f6a: (-s ours) am c55e2c88: DO NOT MERGE: Fix serious DST issue with non-DST time zones
* commit '4ad68f6a47f744976801596784c98bdd25ab2df5':
  DO NOT MERGE: Fix serious DST issue with non-DST time zones
2011-05-17 17:51:33 -07:00
Marc Blank
4ad68f6a47 am c55e2c88: DO NOT MERGE: Fix serious DST issue with non-DST time zones
* commit 'c55e2c884743bf5dee7de8d0fda69db3510476fd':
  DO NOT MERGE: Fix serious DST issue with non-DST time zones
2011-05-17 17:46:24 -07:00
Eric Fischer
f0ec26e63e Merge "Import revised translations." 2011-05-17 17:18:40 -07:00
Eric Fischer
8d3c2229bc Import revised translations.
Change-Id: Iad3bda4840f37b7c9c30012ffc657440cc9ac991
2011-05-17 16:59:35 -07:00
Makoto Onuki
3909570d26 Merge "Changes for NO_XXX" 2011-05-17 15:00:42 -07:00
Makoto Onuki
b36ac01792 Changes for NO_XXX
- Added Message.NO_MESSAGE
- Renamed PSEUDO_ACCOUNT_ID_NONE to NO_ACCOUNT
- Removed PARENT_KEY_NONE and use NO_MAILBOX instead
- For starters, cleaned up the UI controllers to use them.

Change-Id: I6cfd87ece2fced8e9f7c76d034c4d1dbf9e4db10
2011-05-17 14:36:00 -07:00
Todd Kennedy
18ad1651fa Merge "Fix display of POP3 mailbox" 2011-05-17 14:35:10 -07:00
Todd Kennedy
e07ecb8864 Fix display of POP3 mailbox
When legacy support for mailboxes with a parent key of '0' was removed, the
parent key for POP3 mailboxes was not updated. This forces the parent key
for all POP3 mailboxes to be "no mailbox". If we ever want to support virtual
mailboxes for POP3 accounts, this will need to be adjusted.

Change-Id: I4ae0e386db4bcdaf559b87ca17cbe0d151dea75b
2011-05-17 14:18:40 -07:00
Marc Blank
a30316d0df Merge "Workaround bug in DPM related to initialization of our admin" 2011-05-17 14:13:59 -07:00
Eric Fischer
4e1a917b0b am 9576db71: Import revised translations. DO NOT MERGE
* commit '9576db716b33ad9d27688daf484d70440f5347a0':
  Import revised translations.  DO NOT MERGE
2011-05-17 13:31:53 -07:00
Marc Blank
6d9d71683a Workaround bug in DPM related to initialization of our admin
Bug: 4436285

Change-Id: If6f0ccaa9e1479fae0dbd1853a462eaf7948ccfc
2011-05-17 13:27:02 -07:00
Eric Fischer
9576db716b Import revised translations. DO NOT MERGE
Change-Id: I015a4828ea6576c553ada0ed6774aaa88be025b5
2011-05-17 13:20:23 -07:00
Todd Kennedy
7bf21c7165 Merge "Fix bug where we fail to acknowledge an APPEND" 2011-05-17 11:07:33 -07:00
Todd Kennedy
518fc490b2 Fix bug where we fail to acknowledge an APPEND
After appending a message to a mailbox (i.e. like appending to the 'sent'
mailbox after composing a new message), we would try to determine if the
append was successful by searching for the message. Most servers return an
APPENDUID response with the message's new UID. However, on those that don't
support APPENDUID, we need to perform a SEARCH for the message id. On one
set of these servers, the search would fail if the query string was
surrounded by parenthesis. However, another set of servers will fail if the
query string is not surroudned by parenthesis. So, we now try both ways.

Change-Id: I5a82ad241fb927e28aa5d05376568d5eac266a95
2011-05-17 10:43:46 -07:00
Makoto Onuki
e211b1a32a Merge "Remove stale proguard entries" 2011-05-17 10:09:00 -07:00
Todd Kennedy
b522a2c166 Merge "Fix Store re-using old data" 2011-05-17 08:49:55 -07:00
Todd Kennedy
581e3c2333 Fix Store re-using old data
The key for the Store cache was not adjusting properly for account
changes (such as port changes, etc...). As such, it was possible to
get an invalid store.

Now, there's problem with leaking Account objects if the store account
changes (see bug 4440839). This is "okay" for now since account changes
are fairly uncommon and Account objects are light. However, this should
be fixed at some point.

Change-Id: I4ddcbc3e2759b7b1374d0300706373678dedec94
2011-05-17 08:48:33 -07:00
Makoto Onuki
54c91f00d7 Use IllegalArgumentException, not InvalidParameterException
Because IllegalArgumentException is the standard one.

Change-Id: Ib4d0bfa88a3d4218148a7cb248d9baa2124a72ba
2011-05-16 17:48:46 -07:00
Makoto Onuki
7e1fa63d75 Merge "Clean up fragments" 2011-05-16 17:22:37 -07:00
Makoto Onuki
954f037d8f Clean up fragments
Now that we don't reuse fragments and always use newInstance() to pass
arguments, there's a bunch of unnecessary things in them, such as
clearContent().

Also now MessageListFragment takes an account ID as an argument.

Bug 4346486

Change-Id: I7e05628c481ed56512c2281257239105d40ee1bc
2011-05-16 17:17:20 -07:00
Todd Kennedy
171c3f2273 Some more re-arrangement of code
No real code changes; just moving where code / constants live. Removed
one unused method of Store.

Change-Id: Ie7532381759a568cb23601e1071c8e199b6beb07
2011-05-16 14:47:49 -07:00
Todd Kennedy
ebece4dbdc Make ImapConnect a top-level class
Split out ImapConnection to its own class. This allows us to update ImapStore
without worrying about links between it and the connection.

Also, added a bit more safety to the classes in terms of correctly freeing
resources. Whenever the connection is closed, it now releases all resources.
Additionally, if the connection is ever put back in the pool, any response
data is released.

Change-Id: Ie3bda40d677707a0d6655f57175e58dece539e19
2011-05-16 14:17:58 -07:00
Makoto Onuki
f8414e2efe Remove stale proguard entries
Change-Id: I9b1be6b96341184b4bf9cd96ae4535cdc19819ce
2011-05-16 13:49:26 -07:00
Makoto Onuki
b9c2e0d5e6 Remove the phone activities from manifest
Apparently I forgot to include this in the huge CL...

Change-Id: I4b3e944b328e6b8a3e20427904ba654dab2041ac
2011-05-16 13:29:27 -07:00
Makoto Onuki
4c4e4c3515 Clean up the method to build message list selection.
- Moved the method to EmailCommon.
- Use *_SELECTION for magic mailboxes
  (meaning we now use subqueries for magic mailbox selections, rather than
   building the mailbox ID list by ourselves)

Change-Id: I3ebf6af62fd912fea6faea0f75e05fc61c87af3b
2011-05-16 11:08:05 -07:00