Commit Graph

153 Commits

Author SHA1 Message Date
Marc Blank c6089bc01f Initial Imap2 implementation
This CL includes the following:
* New Imap2.apk generation (not included in builds)
* "Push IMAP" option for accounts when Imap2.apk present
* Account creation/setup
* 2-way sync of messages, deletions, flag updates
* Push (messages, flags)
* Folder list hierarchy handling
* Message text (one plain or html part)
* Picker UI for trash folder (placeholder)
* Capabilities handling/UI command

Major Imap2 new features:
* Push
* Multiple folder sync
* Sync window (like EAS)

TODO:
* Picker UI for sent folder
* Upload of sent messages to server
* Search
* Multiple viewable parts
* Probably lots more, incl. unit tests

Change-Id: Ia5d74073d9c307e0bdae72a7f76b27140dde7d14
2012-07-18 11:32:26 -07:00
Paul Westbrook f4f33fd2a9 Change version code & name
Change-Id: Id02ef972a59fbc648acacf07f0fe69356ed3587a
2012-07-11 16:02:18 -07:00
Mindy Pereira 17fa1af8df Disable compose until an account has synced.
Change-Id: Icac997bc7137ec7123d469320b1b204ee9e385bc
2012-07-11 14:56:30 -07:00
Marc Blank f419287f22 DO NOT MERGE: Move emailcommon2 sources to emailcommon
Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
2012-06-28 11:15:06 -07:00
Marc Blank 03cd72805d Revert to old Email app
* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
2012-04-25 13:58:23 -07:00
Marc Blank b019a5a33d Fix manifest to look for send for composing a message.
Change-Id: Ic57240a7ca28a290ab4555c3477dc79f1546b3b6
2012-02-28 13:52:18 -08:00
Marc Blank d9201da55b Setup composeUri for accounts in EmailProvider
* Add intent filter in manifest

Change-Id: Ifbacfcb6109d76d48dabb87eb45ea28ec4278ad8
2012-02-28 10:16:43 -08:00
Paul Westbrook 69e37ad2a2 Use existing intent filter for editing settings
Change-Id: Ief365ba8046cd987f3afeb3736d7200eeec29d77
2012-02-22 14:50:33 -08:00
Paul Westbrook c2412dfec4 Support for new settings intent
Change-Id: I0d5a1f8e6f90885464bcd348a1fae1a3b7db415a
2012-02-22 13:31:03 -08:00
Marc Blank 4f813fb129 Convert POP3 to service
* Remove MessagingController and (almost all of) MailService

Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
2012-02-16 10:27:00 -08:00
Marc Blank c84467afe1 Start of IMAP conversion to Service architecture
* Handle startSync and loadMore
* Use SyncManager rather than MailService for periodic sync
  and upload sync
* First of many CL's to disentangle sync from UI
* Note that the large majority of this CL is a refactoring
  of IMAP specific code out of MessagingController and into
  ImapService; MessagingController will eventually be
  removed entirely from the app, as will much of Controller

Change-Id: I13546d0694479b33cf93c25920dedc1d38227f6c
2012-02-13 11:04:56 -08:00
Marc Blank 3594ac8146 Implement initial UIProvider operations (UnifiedEmail)
* Add support for folder list, conversation list, and message view
  queries
* Open up EmailProvider (temporarily) to allow access from
  UnifiedEmail (signatures don't currently match)
* Modify make file so that we can reference definitions in
  UIProvider

Change-Id: If73c59aa9edfdac5619ff2c6b9cedfdfe4e93d6f
2012-01-12 11:18:01 -08:00
Paul Westbrook 75987dbe0c am 17d522b5: am 07676012: Fix widget updates
* commit '17d522b51c9aa564e1989095e0264264642c2432':
  Fix widget updates
2012-01-09 16:37:39 -08:00
Paul Westbrook 07676012f7 Fix widget updates
Fix widgets that stop updating.  If the Launcher got killed, the Email
widget service gets unbound.  When this happens the cursor loader for the
widget is stopped.  Since widget is relying on the loader to update the data,
when the loader is stopped, the widget would never update.

Now when email recognizes a change, it will send a broadcast intent, which
will cause the widget service to be started, if it isn't.

Bug: 5811810
Change-Id: Ia840e58f10e780b94440119662c2e48e7785c507
2012-01-09 13:14:47 -08:00
Jeff Brown 2b08112df4 am d462ae95: Add application launch category.
* commit 'd462ae95e4b3012e562d5644389a62a43efe8435':
  Add application launch category.
2011-11-29 13:20:08 -08:00
Jeff Brown d462ae95e4 Add application launch category.
Bug: 5674723
Change-Id: I8eb030c9bdc29769b7a3c7e3ca383d29c0a0ebdb
2011-11-28 20:11:53 -08:00
Mindy Pereira 30003e582f Show correct error when adding widget with no email accts on device.
If the WidgetConfiguration service is disabled until the user adds an account,
adding the widget just fails badly as there is no service registered
to handed an APPWIDGET_CONFIGURE intent.
Fixes b/5613821 App isn't installed toast message when creating widget for Email without any account

Change-Id: I98003eadf71fb944d3c0902f7e132ca7c5b67571
2011-11-28 16:30:12 -08:00
Marc Blank bec52108cd Up version number for release
* For ICS-MR1, v4.1

Bug: 5392464
Change-Id: I9666c91a5fde5040ee44c51dc7deae10583a8575
2011-11-08 15:47:54 -08:00
Ben Komalo 9ac7e04fb7 Up Email version for release.
Bug: 5392379
Change-Id: I6b7082bb12d4f9a9b18064b0933f5ed588af9afe
2011-10-10 11:38:16 -07:00
Ben Komalo d43f444710 Use holo light for shortcut/widget pickers
Bug: 5418974
Change-Id: Ied745d9ffa74b824a71f4eba54138739e94c4a64
2011-10-05 16:00:44 -07:00
Ben Komalo b3a72b51dd Prefill account names.
- default to e-mail address for account description
- try to use the phone's profile info for the user name

Bug: 5369190
Change-Id: I01cb567f31999bce79426eee58de8fbbc09e344d
2011-09-28 14:43:08 -07:00
Ben Komalo 82c956414b Up Email version for release.
Bug: 5280784
Change-Id: Ifc6b2ca2209053196e8db62e224553970adeda45
2011-09-14 18:16:49 -07:00
Ben Komalo 27348c7882 Revert "Make compose landscape(phone) go fullscreen"
This reverts commit 0108aeb5b1.

There are too many issues that crop up in this mode.

Bug: 5121640
Change-Id: I6264a63cada973a7ee327ff4c7e7af5df5a6fdb3
2011-08-17 11:13:07 -07:00
Marc Blank a61e7e8511 Remove unneeded and duplicate permissions in manifest
Bug: 3465831
Change-Id: If2960cc59c3b8e71c9f7b04a4c3e457dcc8ca4ef
2011-08-12 16:21:44 -07:00
Ben Komalo 4e200e4bea Misc style fixes.
- split action bar should not happen on compose and settings

Bug: 5127008
Change-Id: I97f2ccac26522831db69216b69a858e382571f5e
2011-08-07 15:33:33 -07:00
Ben Komalo 0108aeb5b1 Make compose landscape(phone) go fullscreen
Bug: 5121640
Change-Id: Ib7cc74c2ee494b69c7674d60960df83d6f0d9845
2011-08-04 17:59:03 -07:00
Ben Komalo 6be8cceadd Update sync settings UI to specs
- minor text changes
- use light holo theme
- slight order changes

Bug: 5110452
Change-Id: Icf558ee495860dc97048765d3b8d09d31161dd32
2011-08-03 17:25:10 -07:00
Adam Powell 72fb0c8b2f Follow framework API changes
Change-Id: Idda69badd6405fe6ddff1d3f4b8ea06332ac3360
2011-08-02 17:00:11 -07:00
Ben Komalo f653fdf7bf Let Data Usage settings jump to Email settings
Bug: 4725602
Change-Id: Ic343e046007859326f3f3314ac79f826617b21f5
2011-07-27 12:31:22 -07:00
Martijn Coenen e5b15cd3c8 NFC zero-click sharing for Email.
This shares the e-mail address of the currently shown account
over P2P NFC links. Note that the currently set account must
be updated actively, because the callback to create the message
comes from one of the NFC threads, which don't have permissions
to retrieve the account and the correspondig e-mail address.

Change-Id: I12e48a3787d469179e7ca074429106ed24e3a212
2011-07-26 11:45:11 -05:00
Ben Komalo 72a24f12a2 Misc settings UX fixes.
Bug: 5068602
Change-Id: I02acf3690e98ce747ddb4d3a745ac2fa59948c70
2011-07-22 16:04:10 -07:00
Marc Blank aca9426581 Remove NotificationService; use Account columns for data storage
Bug: 5023662
Change-Id: I84df3b474dd6320327851003af985144cc16348e
2011-07-19 18:19:59 -07:00
Ben Komalo 1aa5e18902 Update compose view action icons
Don't use split action bar in phone compose view (we lose too much
vertical real estate) and just tuck a lot of the menus under the menu
item.

Bug: 5011815
Change-Id: I04b009556a5984fa4b60f54f2d094c3b7c8a5c78
2011-07-11 10:23:22 -07:00
Makoto Onuki 1ddc2ca4a7 Per-mailbox settings
- Use PreferenceActivity, in the old style, meaning without PreferenceFragment.
- If setting Inbox, change the account settings instead of mailbox settings.
- Use the DialogWhenLarge theme, meaning it's a full-screen avitity on the
  phone and a dialog on the tablet.
- Also fixed the bug that we the menu items that are made invisible by
  UIControllerBase may be made re-visible by the 1-pane controller.

TODO The menu item shouldn't be shown for non-syncable mailboxes.

Change-Id: I02b2faf6f593e1e2eb370217c27801aa58ca7e6c
2011-07-10 12:09:51 -07:00
Makoto Onuki 82fecf203b Merge "Revert "Make EmailActivity the default activity."" 2011-06-21 15:06:39 -07:00
Makoto Onuki 053517d2d1 Revert "Make EmailActivity the default activity."
This reverts commit cfd89da9c3

This would remove all existing widgets somehow.
2011-06-21 15:04:59 -07:00
Makoto Onuki 6500ba21a0 Merge "Make EmailActivity the default activity." 2011-06-21 14:37:01 -07:00
Makoto Onuki cfd89da9c3 Make EmailActivity the default activity.
We still go through Welcome when the app is launched from account/mailbox
shortcuts or a widget, to clear all existing activity instances, but
when the app is launched from the launcher we just open EmailActivity.

This will get rid of the flicker.

Change-Id: I9bff31fb96e24c125ddc0a1e30a007e6d6ff036d
2011-06-21 14:11:05 -07:00
Marc Blank cbc842c5c9 Fix MailService unit tests
* These broke when we split Email/Exchange
* We now use a test authenticator and a test account type, which
  is actually far cleaner than dealing with actual accounts

Change-Id: Ib7c9f884eac484c33642a8036f47466ce641c567
2011-06-21 13:03:48 -07:00
Makoto Onuki 0f27632749 Add "search mode" to the action bar
- Instead of the search dialog, show the search widget on the action bar.
- Launches a new activity for search, but still uses the temporary search code
- Search still works only on two-pane.

Change-Id: I1d36ad3416c7dff9579cf37e40e49e31c9d99219
2011-06-14 15:13:32 -07:00
Ben Komalo 78959916e7 Add support for client side SSL certificates
This introduces the ability for clients (i.e. the exchange service) to
register "special connection types" that use a client certificate stored
in the system keystore. The alias is encoded into the URI scheme for
those clients, and the socket factory used for those connections will
use the approprate KeyManager.

Lots of TODO's, including bubbling a lot of this up to the higher level
and wiring the UI to actually set the alias in the HostAuth table.

Change-Id: If5e1901c5b58731fdabd3e6b6da7198134b512d2
2011-06-13 18:16:22 -07:00
Ben Komalo 0a5ed251f5 am 8e8372d7: am c05084c8: Update Email version for 3.2 release.
* commit '8e8372d733e1cc85977a458d979443937b7c8f46':
  Update Email version for 3.2 release.
2011-06-09 11:54:07 -07:00
Ben Komalo c05084c884 Update Email version for 3.2 release.
Change-Id: I7480c15fcfbc91c34aa042fe936ff08964d7add7
2011-06-07 21:22:07 -07:00
Todd Kennedy 7f4cf3c46b Hook account/mailbox picker to widget
now when adding a widget to the desktop, you can pick the account
and mailbox.

Change-Id: Id3d2c21b349af58459304ac5a068402d67f4d0f7
2011-06-01 18:24:47 -07:00
Todd Kennedy 5675ea88d3 Add a second fragment to select the mailbox
After choosing the account, we need to select a mailbox for the shortcut.
In order to replace the fragment, we cannot hardcode it in the XML. Instead,
we need to dynamically create it.

Also, restructure the fragment class and rely on the class to "do the right
thing"

Change-Id: I752ad5bbdf2484332ec2b73852cae74a5d2092fa
2011-05-24 16:00:33 -07:00
Ben Komalo 87df8d7161 Simple change to use the new split action bar.
Change-Id: I51456822bdf1c6f75aeb0ced615e44b624b26460
2011-05-23 20:41:24 -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
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
Ben Komalo 2866284a6d Rename AccountSettingsXL -> AccountSettings
This activity already supports phone and tablet mode.
Only renames in this change - no other change.

Change-Id: Ieca17137af45e3860812091f69cd4d9b55ddf3ec
2011-05-13 09:58:15 -07:00
Todd Kennedy 71bd208ddd Create a new notification service
We can remove the preferences stuff 'cuz the service "should be" longer
living. And, even if the service is terminated (either by the user or by
the system) we'll receive a new notification when the service comes back.
This is probably desired behaviour anyway.

Change-Id: I4850a9473401536e8fb20385b780d4736ce80a8e
2011-05-11 07:54:07 -07:00