Commit Graph

7908 Commits

Author SHA1 Message Date
Paul Westbrook 3bf29abec0 Include analytics library
Change-Id: Ief6b76fa5c9d4013c8848c78748b988d306510de
2013-04-26 03:07:30 -07:00
Alice Yang 6929654a0d Remove checkboxes from Email
Change-Id: Ie2338cddcf15a278622f72e4827e6b160e16912f
2013-04-25 22:13:29 -07:00
Alice Yang 81c1b3ee2f Sender images in email
This is the minimum change to not break the build in Email when CL
for removing checkboxes is submitted in MR2.
I'm still investigating why contact images aren't showing up in Email and
will follow up with a fix.

Change-Id: I814ed2b0b0a468ee465e57c47c6c7248f4afdbbc
2013-04-25 20:28:31 -07:00
Scott Kennedy c726d4fa6c Add "Reply all" setting to tablets
This controls the notification action on tablets.

Change-Id: I0b8df2ded371820f0dada3f1b11cebad462962ed
2013-04-24 18:15:19 -07:00
Andrew Sapperstein 156a9bde06 PreferenceMigrator force commits pref upgrades.
Now, when PreferenceMigrator.migrate is run,
we forcibly call commit after the VersionedPrefs
object is updated (whether MailPrefs, AccountPreferences
or FolderPreferences). This commit applies the change to
Email2. Should fix b/8640441 and b/8520847.

Change-Id: I9a014c1c4bd35aa2ea8e268fec9a050d47e4d732
2013-04-24 13:38:08 -07:00
Baligh Uddin 33558fc133 Import translations. DO NOT MERGE
Change-Id: I06bc1d390dba17ab69bcf287dce947277ad28542
Auto-generated-cl: translation import
2013-04-24 11:18:44 -07:00
Scott Kennedy 643846abbd Settings changes
Bug: 8685202
Change-Id: Ica781557b91e5ed43221f6e28b9d65cbb044ea55
2013-04-23 13:12:31 -07:00
Andrew Sapperstein 7ed75feb14 Merge "CL to support method signature change." into jb-ub-mail-ur9 2013-04-23 20:03:11 +00:00
Andrew Sapperstein 625409b169 CL to support method signature change.
Helps fix b/7923968. This is just a one-line
change. The real change is in the UnifiedEmail code.

Change-Id: I60808c0265e911394cbffa92214d10626769ca9a
2013-04-22 13:59:16 -07:00
Baligh Uddin c2dfee3ca8 Import translations. DO NOT MERGE
Change-Id: If2f78530cca3ae11bc93975b6504929a6bce9216
Auto-generated-cl: translation import
2013-04-22 12:00:21 -07:00
Paul Westbrook ee9f671daa CleanSpec for change in drawer resource
Bug: 8668887
Change-Id: I1d98d268950fee9335b519f43f8fea6cc4c4a805
2013-04-21 14:44:42 -07:00
Yu Ping Hu e669f28b08 Fix periodic sync (for POP/IMAP).
Periodic sync management was wrong in at least two ways:

1) Periodic syncs were scheduled as a side effect of
   performing a sync, so changing the sync interval setting
   would not do what you expect.
2) Performing a manual mailbox sync would schedule a
   periodic sync on that mailbox.

This change removes the side effect from sync, and instead
actually responds to updates to the sync interval by
removing the extra syncs and updating just the account sync.

Bug: 8666490
Change-Id: I3f4a3fb7044c408578f0dc75ccb6c5bb176bfc0b
2013-04-21 11:33:52 -07:00
Yu Ping Hu 50d5152f54 Merge "Code cleanup." into jb-ub-mail-ur9 2013-04-19 23:16:00 +00:00
Yu Ping Hu 0eb47994a3 Code cleanup.
- Refactor EmailProvider.call
- Remove unused import

Change-Id: I9f0ae35256856a9cd6ea015348d49fcbb6fa8b0f
2013-04-19 15:59:27 -07:00
Mark Wei 3a82ad5992 Fix migration from Email1 to Email2 when using combined inbox.
Bug: 8578254
Change-Id: I2afb7e145664c1e6d10c0cfbf654d835fec8c9f1
2013-04-19 15:07:28 -07:00
Yu Ping Hu 503cc0630d Stop using ContentCache and related caches.
Bug: 8655671
Change-Id: I349ce464b5d752b3ac687852dbce4f0b57e04c67
2013-04-19 11:09:15 -07:00
Yu Ping Hu 0b8e65b784 Increment Email version number.
Change-Id: I70237386705740dc20b6ee589a3404df17bef5f5
2013-04-19 10:03:51 -07:00
Yu Ping Hu 7539508bfc Add a way to check whether we have a wakelock.
Bug: 8640907

Change-Id: I886af09d20dab195a9bbd38082a02d29e8b864e7
2013-04-18 13:48:57 -07:00
Baligh Uddin 87d5fd399f Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur9 2013-04-18 14:55:28 +00:00
Baligh Uddin ac0b2e8571 Import translations. DO NOT MERGE
Change-Id: I90409e7de9c729ee77e8e388affb090ecccda8ee
Auto-generated-cl: translation import
2013-04-17 12:07:10 -07:00
Yu Ping Hu 9a2686afa2 Improve POP sync.
- Set socket timeout as soon as you open it. This was how
  IMAP worked, so I just moved the call up one level. This
  should help one of the sync forever scenarios.
- Simplify the SQL query for getting a Mailbox.
- Try to load messages that failed to load last time.
- Always close the connection to the remote folder.
- Don't try to be too clever in fetching the body.
  This needs to be fixed later for attachements, but for
  now seems to work better and will let me get more testing.

Change-Id: I91b6a6f2a2846b34b1a0c50eb4eb37fc947389ce
2013-04-17 10:54:33 -07:00
Andy Huang cb6bdff95c clean up old layouts, pt 3
Bug: 8393227
Change-Id: I8fbd3ed96d9f7e10708ff6b064b2fea4865c4f69
2013-04-15 13:55:14 -07:00
Yu Ping Hu d3af8adba6 Merge "Populate the account object with the type" into jb-ub-mail-ur9 2013-04-15 20:23:31 +00:00
Scott Kennedy e0d4cab353 Populate the account object with the type
This is needed for prioritizing contact results

Bug: 8587925
Change-Id: I093f0914060a01f37b175ae5877b27e0e16e9eaf
2013-04-15 13:22:27 -07:00
Baligh Uddin e8fd143c81 Import translations. DO NOT MERGE
Change-Id: I9ea9f585bf76f378e3de4970c6f0c8d5fdb23e13
Auto-generated-cl: translation import
2013-04-15 12:05:13 -07:00
Yu Ping Hu e333864112 Merge "Remove spammy log message." into jb-ub-mail-ur9 2013-04-12 23:50:28 +00:00
Yu Ping Hu f9fd4b6bb4 Remove spammy log message.
We don't have special MIME types for all possible queries.
It's only an error if the matcher doesn't know about it at
all, which is handled by findMatch, so we just return null
here (same as with Gmail).

Change-Id: I7061e25b8fd4543c41f62188cb90712353a64779
2013-04-12 16:19:58 -07:00
Baligh Uddin 8b01f18c2d Import translations. DO NOT MERGE
Change-Id: I4604e7a4594d29a100aaeb1f28ede4a57311fe55
Auto-generated-cl: translation import
2013-04-12 11:49:37 -07:00
Yu Ping Hu 9b040bde34 Base64 the folder persistent id.
Bug: 8596345
Change-Id: Ib7025fa54abb12f7c65628639819d06fb530c7ed
2013-04-11 21:42:23 -07:00
Yu Ping Hu 196cb96ea8 Merge "Increment Email version." into jb-ub-mail-ur9 2013-04-12 04:25:57 +00:00
Yu Ping Hu a8fdf9fb07 Increment Email version.
Change-Id: Ibb882d28c226fa257c02092744066e3b087345fa
2013-04-11 20:44:47 -07:00
Yu Ping Hu 22130ad565 Sync folders during account sync.
Previously, the folderlist itself would only sync when there
was no inbox, i.e. at account creation time. Now any sync
that's not a mailbox specific sync will do it.

Change-Id: If7c446cd2e193ed6e1a4abd3fdde0d5748371ba5
2013-04-11 20:39:36 -07:00
Yu Ping Hu 64cc777f8b Autosync stale mailboxes when switching to them.
"Stale" is currently defined as "it's been 5 minutes since
my last sync".

Also includes a small refactor so that uiloadmore doesn't
load the mailbox from DB twice.

Bug: 7100372
Change-Id: Ib31aa211fe2ab790044beb7bc7d2fdcccf595171
2013-04-11 18:01:29 -07:00
Yu Ping Hu 4b0e25898e Fix checkbox option fetch for combined view.
Change-Id: Ie0679ce00ee0558cccc8e10c9346dd730ce08a33
2013-04-11 15:42:09 -07:00
Alice Yang 54cf4b9d8c Merge "Checkbox vs. sender image setting" into jb-ub-mail-ur9 2013-04-11 21:41:51 +00:00
Yu Ping Hu 7dd26feaea Merge "Improve mailbox sync and load more." into jb-ub-mail-ur9 2013-04-11 21:18:47 +00:00
Alice Yang 9f1cff0659 Checkbox vs. sender image setting
Replace the current "Hide checkbox" setting with a tri-state setting with
choice of:
- Show checkboxes
- Show sender image
- Show neither

Bug: 8512959

Change-Id: Ifa233b6d65f8c37388edeed71dbfbfdf1295d6fc
2013-04-11 14:16:01 -07:00
Yu Ping Hu 17d5bbf768 Improve mailbox sync and load more.
- Update syncTime for IMAP and POP whenever we sync.
- Change load more to simply include the delta in the RPC
  rather than using the visibleLimit column.
- Add a query to get the message count for a Mailbox.
- Refactor code for updating totalCount and determining
  the new message count when syncing.
- Remove dead code from Mailbox.
- Remove uses of visibleLimit from code.

Note that visibleLimit and messageCount in Mailbox table are
no longer useful and will be removed in a later change.

Bug: 8579767
Bug: 8523146
Change-Id: Ieb67e3b6f1c82c3b21b972c5a1e557cd75dc21db
2013-04-11 21:06:08 +00:00
Paul Westbrook 69ef2b22ff Fix TempDirectory initialization
The proxy for local services were not intializing the TempDirectory.

Also, move the TempDirectory initialization out of the try/catch block.
Otherwise if Device.getDeviceId threw an exception, the temp directory
wouldn't be initialized

Bug: 8531456
Change-Id: Iea34e0b03203d6c6fe6e5d1ae9902d081bd90c27
2013-04-11 00:39:56 -07:00
Baligh Uddin bb3a938d61 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur9 2013-04-10 20:01:45 +00:00
Baligh Uddin 1a217f1643 Import translations. DO NOT MERGE
Change-Id: I026066648e2e31a9446019beecdbd7ab79559727
Auto-generated-cl: translation import
2013-04-10 12:21:40 -07:00
Paul Westbrook 0c06a7cf99 Fixed mis-located cleanup code
Bug: 8565783
Change-Id: Iab06411cc85cd4958db574ec52eeebb7457c980f
2013-04-10 00:34:04 -07:00
Yu Ping Hu 8abc602c11 Merge "Increment Email version number." into jb-ub-mail-ur9 2013-04-09 22:50:11 +00:00
Yu Ping Hu 217163cce7 Increment Email version number.
Change-Id: I521d39f217fa3662038f350587b34021e599b479
2013-04-09 15:24:40 -07:00
Vikram Aggarwal 6b88a2471f Allow queries in folder URIs
As a result of a previous change, we are appending application version
to the end of the folder name.  This breaks the EmailProvider's
expectation about folder URIs.  So instead of using just
uifolder/<number>, allow for uifolder/<number>?<appversion query>

getPathSegments().get(i) will still return the path segment without
the query, so the folder ID gets resolved correctly.

The previous change:
https://googleplex-android-review.googlesource.com/#/c/281416/

Bug: 8435074 Not able to access Exchange inbox and combined inbox

Change-Id: I7b9ffad9b5510d1a08a29e2a21aacb091d4330a6
2013-04-09 15:08:11 -07:00
Paul Westbrook 7b423bf136 Remove waitForDebugger call
Bug: 8558839
Change-Id: Ie9f351b119620016e9a46c5bf389fdeb75c77382
2013-04-06 12:35:39 -07:00
Yu Ping Hu 80f268e919 Merge "Increment version number." into jb-ub-mail-ur9 2013-04-05 23:43:11 +00:00
Yu Ping Hu f332e9d938 Increment version number.
Change-Id: I97a37ca97d4260db1458acdc22522e89b38e0b51
2013-04-05 16:40:42 -07:00
Yu Ping Hu 2930476051 Reorder the folders in combined view.
Inbox should go to top.

Change-Id: I90c55952aaa3955adfd6d08a12a568bfb192c730
2013-04-05 16:35:51 -07:00
Paul Westbrook fcddd014da Merge "email: "Exchange Services has stopped" - Rain of Exchange Javacrashes" into jb-ub-mail-ur9 2013-04-05 22:35:37 +00:00