Commit Graph

5073 Commits

Author SHA1 Message Date
Todd Kennedy
019341af98 Set mailbox flags for message contents
For IMAP, it's possible for a mailbox to exist on the server, but, to be
unselectable. Previously, these folders were never added to the folder list.
However, with nested folder support, we need to have these folders in the
UX so the user can get to its sub-folders (which may be selectable).

Change-Id: I11135fafbb14b40660983804fb86bd223e180d5e
2011-04-27 09:10:30 -07:00
Marc Blank
265530723b Expose unsupported policies in the UI (account setup)
Change-Id: I75b650af92c87bd990009e54072ac4b58ed0895b
2011-04-26 18:12:45 -07:00
Makoto Onuki
79b97da58c Merge "Fix phone UI." 2011-04-26 13:15:03 -07:00
Makoto Onuki
3de5fd026d Fix phone UI.
Bug 4339904

Change-Id: I343e4a9a77ee7baeff7c9dc1222dad2701efb0df
2011-04-26 13:13:40 -07:00
Todd Kennedy
27cf8b5ffe Display full pathname in move-to dialog
With the recent changes to hierarchical folders, the move-to dialog is
quite unusable if you have multiple child folders with the same name.
While waiting for UX to decide on the exact display, make a few quick
changes to display the fully-qualified pathname instead of just the
child folder name.

Change-Id: Id5c1cc98364fbf7a82a05ac30e944507c7d16320
2011-04-26 11:45:47 -07:00
Todd Kennedy
1f1a056c6d Merge "Add hierarchical folders to IMAP" 2011-04-26 08:12:10 -07:00
Makoto Onuki
0bea177b95 Merge "Create new mailbox fragment for nested folder navigation" 2011-04-25 16:38:50 -07:00
Makoto Onuki
e62770d979 Create new mailbox fragment for nested folder navigation
Create a new instance of the mailbox list fragment when navigating through
nested folders. (drill-in / going back to the root mailboxes.)

Also the fragment manager now has two public methdos for navigation that
are called by the activity.  They will be the common interface for
the tablet UI manager (i.e. MessageListXLFragmentManager) and the
phone UI manager.
- openAccount(accountId)
  Open the default view for the account.  Used when switching accounts.
- open(long accountId, long mailboxId, long messageId)
  Opne a particular view.  Used when, for example, opening a message from the
  widget.

Known issue:
- This breaks drag&drop through nested folder navigation.
  This is because a new mailbox list fragment created during D&D doesn't
  get the "drag started" event.

Change-Id: I69c14b71b4f681f8ab57f3ddd2cff9744a832076
2011-04-25 16:35:57 -07:00
Todd Kennedy
22208771b7 Add hierarchical folders to IMAP
We now create folder hierarcies for IMAP. This also includes a nifty SQL
statement that will get your existing database into shape.

Change-Id: If07a0632e9b250cf0c33c3e16bfba5816beab94c
2011-04-25 15:11:38 -07:00
Ben Komalo
1611d0baed Make ImapStore tests use mocks where possible
Change-Id: I2a1d5e7d3cc3b105a24a5fc29772bcd4a0308ad3
2011-04-25 16:50:37 -04:00
Ben Komalo
8dc402b28a Merge "Fix some unit tests" 2011-04-25 13:41:15 -07:00
Ben Komalo
d9cf94632f Fix some unit tests
- some proguard flags were stale
- some deprecated methods were legitimately stripped - kill the tests
for them

Bug: 4330508
Change-Id: I6d5c46c99d002895377f32b203844e9a6dcf0074
2011-04-25 13:38:51 -04:00
Marc Blank
cbb2abc80e Fix problem w/ ExchangeSender instantiation
Bug: 4334119
Change-Id: Ic900d08a3826754d2807ca84cbb9b8f2f4e28fc3
2011-04-22 18:13:47 -07:00
Ben Komalo
a6e6b9969a Don't rely on Activity to set the context for ops
The Fragment can get detached from the activity prior to performing an
operation, so for now, use the context reference that the fragment has
instead.

In the long run, we should avoid referencing the application context,
but a restructuring of ActivityHelper may help instead.

Bug: 4332451
Change-Id: Ieabff8ec0cc363f7d2eebd3ed47c230df9959886
2011-04-22 17:11:36 -04:00
Ben Komalo
23b441a5c8 Merge "Loosen up type requirements for contexts" 2011-04-22 14:11:06 -07:00
Ben Komalo
7735d548e8 Loosen up type requirements for contexts
A context is sufficient for most operations ActivityHelper does

Change-Id: I2706b2b579210257d0ee6ace6277aa53e84dc52e
2011-04-22 17:00:43 -04:00
Marc Blank
207c282d00 Merge "Add status code(s) for disabled sync (needed for EAS 14.0)" 2011-04-22 12:51:21 -07:00
Marc Blank
d2fd1252d5 Add status code(s) for disabled sync (needed for EAS 14.0)
Change-Id: Ie65141c4d83412274dbbc39dffed7c3be394bb84
2011-04-22 12:50:37 -07:00
Eric Fischer
e430c020a3 Merge "Import revised translations." 2011-04-22 12:30:45 -07:00
Eric Fischer
16305975db Import revised translations.
Change-Id: I43c8f240d5a3fa729557304871c28ecf16d4d000
2011-04-22 12:18:33 -07:00
Marc Blank
224c7215f1 Add new account flag SYNC_DISABLED and add comments to all flags
Change-Id: Ib153282c2294deb0e322b3cd71f90087a8cb23f9
2011-04-21 14:50:21 -07:00
Ben Komalo
51ea22b0d3 Merge "Fix apk attachments so they can be installed" 2011-04-21 14:45:18 -07:00
Makoto Onuki
9fec3d778f Merge "Make sure to exit CAB when MessageListView ." 2011-04-21 13:55:07 -07:00
Todd Kennedy
7155c49f35 Use Account objects instead of URI for exchange
No need to use URIs when we have the Account object.

bug: 4322402
Change-Id: I06e8a5b43063446fa41f7e81eb3638b2570abe5c
2011-04-21 13:10:32 -07:00
Todd Kennedy
7f40e8290b Merge "Simplify mailbox synchronization logic" 2011-04-21 12:29:18 -07:00
Makoto Onuki
fe001abe79 Make sure to exit CAB when MessageListView .
Change-Id: Ie6c5ec26ceff700ee00c6fbb3af4cbe23c498db4
2011-04-21 12:17:41 -07:00
Ben Komalo
e36648697f Fix apk attachments so they can be installed
This introduces an in-memory cache of file paths for an attachment so
that we can install from a filepath instead of a content URI.
The cache also allows us to prevent duplicated files made if the user
hits save multiple times (the save button is disabled).

Bug: 3338997
Change-Id: I56651a55eef2f1a3f24b6d936c37736c4fc3d295
2011-04-21 12:07:32 -07:00
Todd Kennedy
200c6bd9fa Simplify mailbox synchronization logic
The logic is simplified by creating database rows for new mailboxes down
in Imapstore. This means that the difference between local and remote folder
lists are mailboxes that need to be deleted.

Note -- this is still not the final CL. We probably update the database too
frequently and the column values aren't updated to support nested folders.

Change-Id: Ifbe4e0cf74ba81e5b6156b452ab72c56c35235ab
2011-04-21 11:54:30 -07:00
Makoto Onuki
f11295f335 Simplify showToast()
Now it can be used without an activity.

Change-Id: I9c122c9a1e330a909c5ba27aaaca27f746300929
2011-04-21 09:38:37 -07:00
Makoto Onuki
33cfddf1fa Merge "Merged activity step1: Use FragmentTransaction (tablet)" 2011-04-20 15:41:08 -07:00
Makoto Onuki
38a33bd28f Merged activity step1: Use FragmentTransaction (tablet)
Change-Id: Ia67e7f3e0658cb962d328c10affe11ccb5a165ea
2011-04-20 14:55:40 -07:00
Todd Kennedy
daf869cf60 Use an Account object to create a mail sender
Instead of boiling the account down to an unusable URI, just pass along
the Account object.

Change-Id: Ida408912de29734c8f4ed9cdf09a4d633dd03002
2011-04-20 11:14:02 -07:00
Todd Kennedy
031527a03e Merge "Use Account instead of URI to create transports" 2011-04-20 09:16:28 -07:00
Todd Kennedy
a50fc99b0c Use Account instead of URI to create transports
There's no need to create a URI just to rip in appart again. Additionally, to
support additional changes (i.e. to use Mailbox instead of Folder in the
MessageController), we need to store the actual Account.

NOTE -- This change only affects IMAP and POP3. SMTP will come in a follow-on CL

Change-Id: I400036a17271c99272fd9c603547dcd713b50b9d
2011-04-20 08:31:24 -07:00
Ben Komalo
8f84cae3c3 Merge "Re-work the layout computation for MessageListItem" 2011-04-19 12:19:42 -07:00
Ben Komalo
8b2109f047 Re-work the layout computation for MessageListItem
This now uses an XML layout that gets inflated and computed after a
layout pass. The drawing simply uses the coordinates stored after the
layout.

This makes it a lot easier to maintain the different views and allows us
to simply provide different XML files for different modes/views, isntead
of trying to hand tweak Java layout code.

Some TODOs - clean up the "paints" and optimize the layout/drawing
computation

Change-Id: I784919f726bd4d80aba8744a8f047fcfe79ad93a
2011-04-19 11:53:30 -07:00
Todd Kennedy
ba7652cda0 Make ImapFolder a top-level class
No code changes; just moving the class

Change-Id: I4e4544d99d52dde85b96c99ef45da3a96e7d3d48
2011-04-19 09:31:43 -07:00
Ben Komalo
058eb3984f Merge "Fixup auto advance policy handling." 2011-04-18 10:46:21 -07:00
Ben Komalo
36990d46cf Fixup auto advance policy handling.
The phone code has gone stale and ignored auto advance policies - this
fixes it, though that code is likely to get merged anyways.

Makes it so that auto-advancing to the end of the list pops back out to
the message list

Bug: 4302999
Change-Id: I609747c0a19672b8aa56d2c0ab57533823899e47
2011-04-18 09:48:58 -07:00
Eric Fischer
c61d9b4ff2 am c23f695d: (-s ours) am ce5828ed: am 11574724: (-s ours) Import revised translations. DO NOT MERGE
* commit 'c23f695de53aadbb3dc58987d632dab3647febed':
  Import revised translations.  DO NOT MERGE
2011-04-18 03:28:47 -07:00
Eric Fischer
c23f695de5 am ce5828ed: am 11574724: (-s ours) Import revised translations. DO NOT MERGE
* commit 'ce5828ed38212df654352ae8532dcad42d172de3':
  Import revised translations.  DO NOT MERGE
2011-04-18 03:18:16 -07:00
Ben Komalo
238f837844 Merge "Kill old message_list_item." 2011-04-16 18:36:24 -07:00
Ben Komalo
1fdfdc51a1 Kill old message_list_item.
E-mail uses a custom view now and this XML layout has bitrotted.

Change-Id: I8e358d941bb56174cd4f8fcb74a106107363e557
2011-04-15 15:15:26 -07:00
Eric Fischer
b99d44c112 Merge "Import revised translations." 2011-04-15 15:00:39 -07:00
Eric Fischer
deb6d39394 Import revised translations.
Change-Id: I84bb8da3f1e442b68124a500fa513b0cb1048912
2011-04-15 14:40:03 -07:00
Todd Kennedy
cfbf1eb66d Clean up drag-and-drop
Basic refactoring of the drag-and-drop logic to make it a bit cleaner

Change-Id: I0e59074710be00bd285f637e92f554c8ee47fabf
2011-04-15 14:33:25 -07:00
Eric Fischer
ce5828ed38 am 11574724: (-s ours) Import revised translations. DO NOT MERGE
* commit '11574724466d0a363b9cd8a99aa4e2f6841aa4a2':
  Import revised translations.  DO NOT MERGE
2011-04-15 12:44:30 -07:00
Todd Kennedy
49786fbe2a Remove extra padding from expanded icon
Change-Id: I1e351dc0978a5e2d576a7c0c84625d66b3ebbbbc
2011-04-15 09:20:02 -07:00
Todd Kennedy
d1b1404d76 Merge "Implement drag-n-drop with nested folders" 2011-04-15 08:57:26 -07:00
Todd Kennedy
6c3cd4e247 Implement drag-n-drop with nested folders
We can now drill down into nested folders during drag-n-drop. Simply hover over
a collapsed folder for 750ms and it will auto-expand.

Change-Id: Ia9b42dd87e19c2ebdf8675c761cb1453bb26d158
2011-04-14 16:23:20 -07:00