Commit Graph

8640 Commits

Author SHA1 Message Date
Paul Westbrook
7c35c519b2 am 7985b43a: Add public no-arg Fragment constructors
* commit '7985b43ab7310f76c170266da346f993d2f86051':
  Add public no-arg Fragment constructors
2013-08-13 21:54:42 -07:00
Paul Westbrook
7985b43ab7 Add public no-arg Fragment constructors
Bug: 10311630
Change-Id: I0243462cdc28b9af3151754a8c8583330418579b
2013-08-13 16:43:34 -07:00
Martin Hibdon
b2947f4702 am 66ac290b: Fix a bug causing duplicate messages to be added
* commit '66ac290b353302256e85d319c0ce623277dfdad3':
  Fix a bug causing duplicate messages to be added
2013-08-12 18:44:56 -07:00
Martin Hibdon
66ac290b35 Fix a bug causing duplicate messages to be added
The IMAP time based query only takes a date, not a
date/time. This means that if we want to load all
messages since, for example, Aug 11 at 3:00 PM,
we'll actually get all messages since Aug 11 at any time.

Our local query actually took into account the time, so
when we loaded a map of local messages, it would not
always include all of the same messages that the IMAP
query would. This meant that if we processed a message
that was in our IMAP query window but not our local query
window, we'd always think it was a new message even
if it wasn't.

It's easy enough to increase the size of our local query
window so that it will definitely include all of the
messages the IMAP query might return, but this adds
a new problem: It's no longer safe to delete any local
message that did not come back in our IMAP query result.
Since our local query may include a larger time window
than the IMAP query window, we need to check each message's
timestamp, and only delete it if it is inside the remote
query time window.

Change-Id: Ib3c1bbe8f3db05720d32a981483676afa6d6c38b
2013-08-12 17:22:24 -07:00
Tony Mantler
df5332e174 am cef6c19b: Move the "Add new quick response" button into the action bar
* commit 'cef6c19be22fb026161a7763f4e1efb1e30a728a':
  Move the "Add new quick response" button into the action bar
2013-08-12 13:25:29 -07:00
Tony Mantler
cef6c19be2 Move the "Add new quick response" button into the action bar
Change-Id: I433fb686837d0de125fb277f5055bc33b7769eff
2013-08-12 12:04:43 -07:00
Paul Westbrook
3cbefa3e60 am 8c13dcd9: Merge "Fix problem in IMAP with non-roman locales" into jb-ub-mail-ur10
* commit '8c13dcd950b2a5d5a95d60690e2d3bd42b4ffbdf':
  Fix problem in IMAP with non-roman locales
2013-08-12 12:04:10 -07:00
Paul Westbrook
8c13dcd950 Merge "Fix problem in IMAP with non-roman locales" into jb-ub-mail-ur10 2013-08-12 19:02:39 +00:00
Tony Mantler
cb17f65690 am 948e503b: Merge "Continue rewriting QuickResponse support" into jb-ub-mail-ur10
* commit '948e503b4a2e1b2a74e3919bb64dc7df7dc91b33':
  Continue rewriting QuickResponse support
2013-08-12 11:44:55 -07:00
Paul Westbrook
ae29fb76f0 Fix problem in IMAP with non-roman locales
This is a partial cherry-pick of:
https://android-review.googlesource.com/#/c/57514/1

Change-Id: I1dea4d5bf0bd02fec2baf5763f5864c3eb32f744
2013-08-12 11:43:44 -07:00
Tony Mantler
948e503b4a Merge "Continue rewriting QuickResponse support" into jb-ub-mail-ur10 2013-08-12 18:42:49 +00:00
Tony Mantler
6d24534804 Continue rewriting QuickResponse support
Change-Id: I95530e84d91f4becb3de5280af83ce546e1ed093
2013-08-12 11:40:16 -07:00
Alice Yang
20fb031633 am 50f0cba9: Merge "Sync disabled tip" into jb-ub-mail-ur10
* commit '50f0cba92ce2c2f45600cfd0e5184df84d3ab370':
  Sync disabled tip
2013-08-11 22:43:29 -07:00
Alice Yang
50f0cba92c Merge "Sync disabled tip" into jb-ub-mail-ur10 2013-08-12 05:38:59 +00:00
Yu Ping Hu
285e57c7a2 am 2bafe9d9: Add a utility function to map mailbox type to authority.
* commit '2bafe9d90497f48aaf4009d8428f30bbe97e89ba':
  Add a utility function to map mailbox type to authority.
2013-08-09 17:59:09 -07:00
Yu Ping Hu
2bafe9d904 Add a utility function to map mailbox type to authority.
Change-Id: I21731a5d9ba45850577fdda4d6bef8835d6d3249
2013-08-09 17:30:32 -07:00
Paul Westbrook
9cf070e767 am e13af80f: Merge "Updated account access settings for Wirtualna Polska" into jb-ub-mail-ur10
* commit 'e13af80f6f0652fca36058313243483df138e4eb':
  Updated account access settings for Wirtualna Polska
2013-08-09 13:44:09 -07:00
Yu Ping Hu
9a996057a5 am 4ef1f6a6: Merge "Synchronize all access to the EmailServiceInfo map." into jb-ub-mail-ur10
* commit '4ef1f6a689e12f265d12638329a35c9ae927b3b8':
  Synchronize all access to the EmailServiceInfo map.
2013-08-09 13:44:08 -07:00
Paul Westbrook
e13af80f6f Merge "Updated account access settings for Wirtualna Polska" into jb-ub-mail-ur10 2013-08-09 20:42:21 +00:00
Yu Ping Hu
4ef1f6a689 Merge "Synchronize all access to the EmailServiceInfo map." into jb-ub-mail-ur10 2013-08-09 20:41:47 +00:00
Tomasz Potega
7f4bc353fa Updated account access settings for Wirtualna Polska
See:

http://poczta.wp.pl/info-pomoc-konfig.html?action=more&id=161

SSL encryption on by default, IMAP access.

Change-Id: I60d4f264a50e8f2c501493c64ef5e631a690073b
Signed-off-by: Tomasz Potega <tomasz.potega@gmail.com>
2013-08-09 13:33:09 -07:00
Paul Westbrook
f710d4a0bf am 3b758913: Merge "Use DatabaseUtils method instead of query()" into jb-ub-mail-ur10
* commit '3b758913be54c4d561ce718cb2cd629686f92037':
  Use DatabaseUtils method instead of query()
2013-08-09 12:21:50 -07:00
Paul Westbrook
3b758913be Merge "Use DatabaseUtils method instead of query()" into jb-ub-mail-ur10 2013-08-09 19:19:44 +00:00
yi.jang
809b52b117 am 44e16031: Use deleteDatabase method to improve safety of DB file handling
* commit '44e16031550929a5e840aa61dcb4246ff1f691d9':
  Use deleteDatabase method to improve safety of DB file handling
2013-08-09 12:05:39 -07:00
yi.jang
44e1603155 Use deleteDatabase method to improve safety of DB file handling
Deleting .db files can make malformed database issues
when WAL(write ahead logging) mode is enabled.
EmailProvider doesn't use WAL mode currently,
But it has to be fixed because it might cause the problem in the
future.

Change-Id: Ie0313c5d253f3080401b00b197e7cbf97f25423c

Conflicts:
	src/com/android/email/provider/EmailProvider.java
2013-08-09 11:58:15 -07:00
Yu Ping Hu
b5eed31d1b Synchronize all access to the EmailServiceInfo map.
Bug: 10255995
Change-Id: I36bee575a923b5c8bfbaea7babdf9f2c5e9bd378
2013-08-09 11:51:53 -07:00
yi.jang
a674551464 Use DatabaseUtils method instead of query()
Use DatabaseUtils.longForQuery() method instead of SQLiteDatabase.query().
This reduces processing cost of database cursor.

Change-Id: Ibe53645b32a4de1ab6518f879e564ddf8f75d822

Conflicts:
	src/com/android/email/provider/EmailProvider.java
2013-08-09 11:50:27 -07:00
Yu Ping Hu
50689dbcaa am 5673236e: Set SDK version for Email to 18.
* commit '5673236ebe98bbbc47c433d9f08e54a4f8f5d282':
  Set SDK version for Email to 18.
2013-08-08 14:01:33 -07:00
Yu Ping Hu
5673236ebe Set SDK version for Email to 18.
Change-Id: Ib233193554637506ce5b9cdbe999843b9e5e4ab5
2013-08-08 10:23:17 -07:00
Tony Mantler
1980191a65 am fdb0fc71: Merge "Start cleaning up QuickResponse code" into jb-ub-mail-ur10
* commit 'fdb0fc712a602518112226c8f82343fc07e08260':
  Start cleaning up QuickResponse code
2013-08-07 19:22:31 -07:00
Tony Mantler
fdb0fc712a Merge "Start cleaning up QuickResponse code" into jb-ub-mail-ur10 2013-08-08 02:21:18 +00:00
Yu Ping Hu
df0bba72f7 am bf0911f3: Disable attachment preview pref.
* commit 'bf0911f3dee8bea9d2a8a8957913cf62e4f5eb85':
  Disable attachment preview pref.
2013-08-07 18:18:15 -07:00
Yu Ping Hu
bf0911f3de Disable attachment preview pref.
Bug: 10232077
Change-Id: If1ed251d63befd40dc55ada2da7c56f5ac611c68
2013-08-07 18:09:13 -07:00
Mark Wei
45e3e59f03 am 94e6b5d9: Merge "Change IME input mode to pan instead of resize." into jb-ub-mail-ur10
* commit '94e6b5d9bd6ada7d4174ecc1f7ef2238ea66031e':
  Change IME input mode to pan instead of resize.
2013-08-07 17:06:58 -07:00
Mark Wei
94e6b5d9bd Merge "Change IME input mode to pan instead of resize." into jb-ub-mail-ur10 2013-08-08 00:03:55 +00:00
Tony Mantler
05273f8309 Start cleaning up QuickResponse code
Change-Id: I76b5adbe8e05713c44d11a2e51d317cae6266a56
2013-08-07 16:57:21 -07:00
Yu Ping Hu
8fb4c89d9a am 6d3e1c9d: Merge "Increment Email version." into jb-ub-mail-ur10
* commit '6d3e1c9dad539b3e87501a723c3fecdd12701a59':
  Increment Email version.
2013-08-07 15:00:23 -07:00
Yu Ping Hu
6d3e1c9dad Merge "Increment Email version." into jb-ub-mail-ur10 2013-08-07 21:56:08 +00:00
Mark Wei
3a29afda80 Change IME input mode to pan instead of resize.
Prevents attachment previews from changing parallax view when starting search.

Bug: 10153107
Change-Id: I10984fc9a148786d87d9e72f9e37d0b46e37775e
2013-08-07 14:04:20 -07:00
Yu Ping Hu
317a7c62fb Increment Email version.
Change-Id: I9c9e09004c2dd546772739c431e9206f09c9974e
2013-08-07 14:02:26 -07:00
Martin Hibdon
c9fa98c90f am d42e14ad: Merge "Implement two part imap sync" into jb-ub-mail-ur10
* commit 'd42e14ad722db6eb1a8e6b0696abb6d4a88fac4e':
  Implement two part imap sync
2013-08-07 13:32:52 -07:00
Martin Hibdon
d42e14ad72 Merge "Implement two part imap sync" into jb-ub-mail-ur10 2013-08-07 20:30:00 +00:00
Martin Hibdon
c75f5880ab Implement two part imap sync
b/10075523
Now, every 15 minutes we'll sync the last 24 hours.
Every 4 hours we'll perform a full sync, which will
take either the last 7 days, or until the oldest message
we already have locally.

Change-Id: Idc55a46a28af2a68cc324e414d51d88373941595
2013-08-07 12:26:24 -07:00
Mark Wei
6ac290a4a0 am 034149b5: Add a setting for attachment previews.
* commit '034149b5861ff5a42593f9749ab059f2c4cf4381':
  Add a setting for attachment previews.
2013-08-07 11:28:44 -07:00
Mark Wei
034149b586 Add a setting for attachment previews.
Bug: 10131520
Change-Id: I782b331971272203d1b36a578cf6a149793b10e6
2013-08-07 10:55:59 -07:00
Yu Ping Hu
d9521a3f9d am c3ceed68: Fix ui notifications on folder list changes.
* commit 'c3ceed68948ef6720ae7b861955b4d341f331643':
  Fix ui notifications on folder list changes.
2013-08-07 10:38:10 -07:00
Alice Yang
f1284d4d55 Sync disabled tip
Bug 9825835

Change-Id: I5fd692c7cd8a03d3b8ea140f2d6e8919bd293904
2013-08-07 08:31:29 -07:00
Yu Ping Hu
d80bf70b58 am 6edccbf1: Fix capabilities to allow discarding drafts.
* commit '6edccbf1f1371157cfa6e503d8353a474aafd2a1':
  Fix capabilities to allow discarding drafts.
2013-08-06 20:39:14 -07:00
Yu Ping Hu
c3ceed6894 Fix ui notifications on folder list changes.
uifolders and uiallfolders cursors now setNotificationUri on
the appropriate uri. That uri is notified whenever:

- A folder is inserted, deleted, or modified.
- A message is inserted or modified (since this can affect
  message counts).

This second one is still not quite right: there are some
conditions where counts aren't updating correctly.

While I was here, I renamed the notification uris to
avoid collisions between different versions of the app.

Bug: 9111855
Change-Id: Ia29bb6a65b4f673bf352fdf0e14270b3f1443ca8
2013-08-06 20:37:35 -07:00
Yu Ping Hu
6edccbf1f1 Fix capabilities to allow discarding drafts.
Bug: 10098652
Change-Id: Iebceb203cd054a1550f7c1f118841a77429f853a
2013-08-06 20:20:15 -07:00