Commit Graph

7840 Commits

Author SHA1 Message Date
Paul Westbrook
8fcf4d7976 Revert "Remove extra Imap authenticator"
This reverts commit 1310fb5790

Change-Id: Ife2e885b1d772b6c322c607a61023eabdcc26efa
2013-03-12 23:03:45 +00:00
Paul Westbrook
9ab4553ea8 Merge "Remove extra Imap authenticator" into jb-ub-mail-ur9 2013-03-12 22:25:14 +00:00
Paul Westbrook
fdc5e52ef9 Merge "Simplification of app initialization" into jb-ub-mail-ur9 2013-03-12 22:24:40 +00:00
Yu Ping Hu
9d91dd8023 Specify correct sync extras for user-requested syncs.
BUG: 8364227
Change-Id: Icfc97c92e5ecc9c2abd83b73cf67a5e10408cede
2013-03-12 12:38:01 -07:00
Baligh Uddin
6be6d42ed3 Import translations. DO NOT MERGE
Change-Id: Id7dad5ef31e6571c60da1569f8103d4833fdb3ae
Auto-generated-cl: translation import
2013-03-12 12:15:44 -07:00
Paul Westbrook
06c358dfee Simplification of app initialization
Specify a account query uri in a resource, and remove the old receiver

Change-Id: Ia04dccfc95e0bb1854bba2e6f51e2de1546d72ce
2013-03-11 23:48:44 -07:00
Paul Westbrook
1310fb5790 Remove extra Imap authenticator
Bug: 7211288
Change-Id: I130869a489fdfa95343022316a5ed4533d1f102c
2013-03-11 14:36:45 -07:00
Paul Westbrook
258776d784 Remove unnecessary resource overlay
Bug: 8170660
Change-Id: Iba1ed6e6f9e605c66a78d574e6450dcba0b9b195
2013-03-08 18:01:12 -08:00
Paul Westbrook
5a3d863a43 Add support for feedback
Change-Id: I6de8c0117f79c0be05d3db2fc108f8bf61415783
2013-03-08 17:15:00 -08:00
Paul Westbrook
95bb350f38 Fix NPE when adding account with security policy
When adding an Exchange account with a security policy, Email
generates a notification to let the user enable the policy. The
code that generates the notification attemptes to load the folder
as part of the base notification.  Before the account policy has been
configured, it isn't possible to load the folder.  We need to handle
a null folder when generating the notification

Also, imporoved the logging when an exception is thrown from the
PolicyService

Bug: 8341882
Change-Id: I33ff57adc3c130e8318910e352146b8ea56f9a2c
2013-03-07 23:00:47 -08:00
Yu Ping Hu
1eebd2f61c Increment version for email.
Change-Id: If42d894e2314eaf7caf2462bbff72d60956931ae
2013-03-07 18:29:24 -08:00
Scott Kennedy
1cea05ac37 Merge "Make widgets work again" into jb-ub-mail-ur9 2013-03-08 01:45:22 +00:00
Yu Ping Hu
c813ab6cc6 Increment email2 version code.
Change-Id: Iaeeb0b4adafd4275f068336dbbe94484ce754e44
2013-03-07 16:42:46 -08:00
Yu Ping Hu
6967b6b6bc Merge "When folder is changed, also update conversation list." into jb-ub-mail-ur9 2013-03-07 19:44:50 +00:00
Scott Kennedy
dfd2c87740 Make widgets work again
We can't send Folder parcelables to RemoteViews, so let's just send
what we need: two URIs and a String.

Bug: 8330949
Change-Id: Ic3f272e1bae4530cdc7776fd88eeb7bcb1a7dae3
2013-03-07 11:00:43 -08:00
Yu Ping Hu
fc0dae9cd7 When folder is changed, also update conversation list.
Also add the folder's total count to the extras for the
conversation list cursor.

BUG: 7480726
Change-Id: I3215fed561deb8430fd6d6c680bdb44ca87cc162
2013-03-06 19:01:41 -08:00
Paul Westbrook
32881e8dd3 Fix NPE after migrating older account
Change-Id: Ifeb3b1853ce3efd725227941103d29a00bc14fc2
2013-03-05 14:07:47 -08:00
Paul Westbrook
1bc34c4317 Set local sdk version
Change-Id: I736591787527849222d95574bb092437d18b04f5
2013-03-05 09:51:58 -08:00
Vikram Aggarwal
3f0f64f79b Enable the MailLogService for Email
Bug: 8293525 Add debugging information for Gmail
Change-Id: I96e65c64f2347c17c497667258a567f7b618b121
2013-03-04 10:47:10 -08:00
Paul Westbrook
3bf7281800 Temporary Work around bug 8170660
For some reason, Email crashes when measuring the
RecipientsEditTextView, when replying to a message.  Replying to the
same message from Gmail2 doesn't cause this crash

This CL just sets a height on the recipient view

Bug: 8170660
Change-Id: Ib1cd7da3ac423140a0a9d9fb17a3de0c42a20b15
2013-03-01 14:21:14 -08:00
Yu Ping Hu
4da3641292 Clean up ServiceProxy.
ServiceProxy had more layers of threads than needed,
and also had out of date comments.

Change-Id: I0b9de4eeb9ba4b84b8e058279adff5172941a8d0
2013-02-28 14:33:09 -08:00
Paul Westbrook
9a95253846 Cache attachments on send
Cache attachments in a email directory when sending to allow sending
to succeed when the content provider has a permission

Bug: 7381557
Change-Id: Icf9faead2048de237228625f998b42feade48978
2013-02-27 09:43:31 -08:00
Paul Westbrook
3e2fdd33e3 Fix account creation
Notifications were not being sent on account additions,
so the UI would reprompt to add an account, after an account
was added.  Now, the appropriate notifications are sent.

Also, fixed some cases where try/finally blocks were not used
to ensure that cursors were being closed.

Change-Id: If65934a34d995471fd5102fbe7e8cacbed5aae44
2013-02-26 12:04:29 -08:00
Paul Westbrook
4b6d17ebea Remove versionName
This is now set as part of the build process

Change-Id: Ic4db38df434031ce43c5a929dc7bac157a26d0a0
2013-02-25 12:11:02 -08:00
Paul Westbrook
82fef2b331 Remove usage of deprecated field
Change-Id: I6c2dc897e0389023f16c0d4887ee9489ebba4cd8
2013-02-22 17:07:01 -08:00
Mark Wei
ffa3370b39 am ea2edb63: Set MIME type correctly on drafts when content provider does not provide it.
* commit 'ea2edb637036a7368b6ef82a0aafdb1a790e26e9':
  Set MIME type correctly on drafts when content provider does not provide it.
2013-02-22 15:50:45 -08:00
Paul Westbrook
7401a82634 Fix suggestions from last CL
Change-Id: I838a408d28b5427f591e8e453008d9945144ff21
2013-02-22 14:40:14 -08:00
Paul Westbrook
e04b736866 Remove deprecated fields/members
Change-Id: I74d5f2eb4ed778f0590a3c935e6b79c335a3bdd7
2013-02-22 12:50:11 -08:00
Paul Westbrook
779fe02003 First part of switching Email to use ContentResolver#call
This CL includes the call() support.  Subsequent CLs will remove the
deprecated UI provider uris, will add attachment caching to Email

Bug: 7381557
Change-Id: Iff59c7c0503c6e9ccda1d15954f72ffa78331b4e
2013-02-22 10:09:03 -08:00
Mark Wei
ea2edb6370 Set MIME type correctly on drafts when content provider does not provide it.
Bug: 8235172
Change-Id: Ia8bc575fb902de882dfbba3bfc7cd3acb625ce2c
2013-02-21 18:10:10 -08:00
Yu Ping Hu
512433135c Merge "Fix how visibleLimit for a Mailbox is set." into jb-ub-mail-ur9 2013-02-16 03:01:08 +00:00
Yu Ping Hu
66eef4565d Fix how visibleLimit for a Mailbox is set.
- Make sure visibleLimit stays <= totalCount.
- Don't reset it to 0 every time user enters a folder.

Also sets Folder.totalCount = Mailbox.folderCount
(rather than Mailbox.messageCount).

BUG: 7480726
Change-Id: Iae084d9445f483dca2b1da052ffd4dd7d091c6f6
2013-02-15 17:02:40 -08:00
Scott Kennedy
2f9c66d08b Use swipe preference for archive/delete action
Since some people prefer delete over archive, we will use their
conversation list swipe preference to determine whether to show
a "Delete" action or an "Archive"/"Remove label" action. "Delete"
will be shown if they have selected "Always delete"

UR9 version of I4eb0d408474a9f613cc4267c3851cc7277a22ebd

Change-Id: Ia2f1382b88c1ee6f64e864cb8b780d02821b673d
2013-02-14 14:46:02 -08:00
Baligh Uddin
82eadd601a am d384fcbf: (-s ours) Import translations. DO NOT MERGE
# Via Baligh Uddin
* commit 'd384fcbffa410bbc6d07e4d3c29a20ef1dd41567':
  Import translations. DO NOT MERGE
2013-02-12 15:28:29 -08:00
Baligh Uddin
d384fcbffa Import translations. DO NOT MERGE
Change-Id: I029ab00baae5e7367ebb0e6a2bf4aed328b22e35
Auto-generated-cl: translation import
2013-02-12 13:00:18 -08:00
Vikram Aggarwal
132a3f0977 Merge "Add user assignable category for mail foldders if it accepts moved messages" into jb-ub-mail-ur9 2013-02-11 17:03:46 +00:00
Baligh Uddin
efb090087b am 136378e4: (-s ours) Import translations. DO NOT MERGE
# Via Baligh Uddin
* commit '136378e404278cb86f0b1a7d09f56cb2f5fd3199':
  Import translations. DO NOT MERGE
2013-02-08 11:51:50 -08:00
Baligh Uddin
136378e404 Import translations. DO NOT MERGE
Change-Id: I187dd578bdf665270320be4fc46b61f9dd89bbd4
Auto-generated-cl: translation import
2013-02-08 11:40:05 -08:00
Rohan Shah
5ba32cc2b9 Add user assignable category for mail foldders if it accepts moved messages
Email requires a user assignable category in the case
the user is moving labels/folders from a category the
user should not be allowed to view (i.e. sys labels).

Change added flag under function where if it allows
moved messages, it will allow the user to assign
there as well.

Bug: 8157593

Change-Id: Icc8a5d4587ef9180d32207613da4f31ddc8854f1
2013-02-08 11:19:11 -08:00
Scott Kennedy
b34608228f Move notifications to UnifiedEmail
This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d (UnifiedEmail)

Change-Id: Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2
2013-02-08 09:48:22 -08:00
Baligh Uddin
19b77bfe12 am 584c0a8e: (-s ours) Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur8
# Via Android (Google) Code Review (1) and Baligh Uddin (1)
* commit '584c0a8e28e377c25762c0650f17ba39441a13a4':
  Import translations. DO NOT MERGE
2013-02-07 18:07:36 -08:00
Baligh Uddin
584c0a8e28 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur8 2013-02-08 02:05:32 +00:00
Scott Kennedy
a5abf7b338 am 7fdde9bb: Cache column name/indexes so we can use getColumnIndex()
# Via Scott Kennedy
* commit '7fdde9bb4a24e931618a7a64227e2194c89034da':
  Cache column name/indexes so we can use getColumnIndex()
2013-02-06 17:26:30 -08:00
Scott Kennedy
7fdde9bb4a Cache column name/indexes so we can use getColumnIndex()
MatrixCursor doesn't do this, so we need to add our own cache.

Depends on Ia5ffd31f54a2a335f495df5e0d1a0886ee08c14b

Change-Id: Ica78e3cec747bf86fcef16508156e359216c64fe
2013-02-06 17:09:42 -08:00
Baligh Uddin
e5198e1d5e Import translations. DO NOT MERGE
Change-Id: I724599f777c178f00d77c12c23c73b78f7629cc8
Auto-generated-cl: translation import
2013-02-06 15:26:03 -08:00
Baligh Uddin
81167c655d am 80b5bb3d: (-s ours) Import translations. DO NOT MERGE
# Via Baligh Uddin
* commit '80b5bb3dfce7b11b56d8d493ed7b66a0aba8e0c1':
  Import translations. DO NOT MERGE
2013-02-05 12:16:41 -08:00
Baligh Uddin
80b5bb3dfc Import translations. DO NOT MERGE
Change-Id: I57772fbb48c6bae863f3508f6e068ece9ca49980
Auto-generated-cl: translation import
2013-02-04 10:29:16 -08:00
Baligh Uddin
41116bfece am 02a834eb: (-s ours) Import translations. DO NOT MERGE
# Via Baligh Uddin
* commit '02a834eb5a9384acc6a69f04c123a57ca9c78356':
  Import translations. DO NOT MERGE
2013-02-01 10:34:40 -08:00
Baligh Uddin
02a834eb5a Import translations. DO NOT MERGE
Change-Id: Ia83fe242765fd3d18fe70d48a54425a9bc449cf4
Auto-generated-cl: translation import
2013-02-01 09:13:54 -08:00
Vikram Aggarwal
b249e71e02 am afbee625: Remove nonexistant classes and update existing ones
# Via Vikram Aggarwal
* commit 'afbee625adbb5d1473b37c55e0e3cdf418d29957':
  Remove nonexistant classes and update existing ones
2013-01-30 16:29:23 -08:00