Commit Graph

10280 Commits

Author SHA1 Message Date
James Lemieux
89febdfc3b Replace all references to UnifiedEmail's com.android.oldbitmap with
equivalent usage of framework's com.android.bitmap.

A small refactor of AccountAvatarDrawable.drawBitmap(...) is also included
which produces no functional change.

Change-Id: I223e71a31ada0d9ffb2e4f0458fa1703338ac622
2014-07-11 14:24:42 -07:00
James Lemieux
f79ed0f54f Merge "Remove attachment previews from Conversation List" into ub-mail-master 2014-07-11 16:34:41 +00:00
Tony Mantler
436a0bdee5 Merge "Add support for UPDATE_SETTINGS_URI" into ub-mail-master 2014-07-11 16:34:41 +00:00
Tony Mantler
b7e0834121 Add support for UPDATE_SETTINGS_URI
b/16188467

Change-Id: I6a948292e4406e01d68ed5c961912c492367717d
2014-07-11 11:25:58 -07:00
Milos Stankovic
4fb4820223 Moving Previous, Next and Done strings to UnifiedEmail.
Other change: 500164
Change-Id: I2eb4fd00b62d18c523c3ec49eec6748eb602e7cd
2014-07-11 10:54:58 +00:00
James Lemieux
a546307c1d Remove attachment previews from Conversation List
This includes:

- all references to the 3 attachment preview columns in the Gmail
conversation table (except for migration code in MailStoreInitializer)
- all layout and drawing code for attachment previews in conversation list
- all assets related to attachment previews
- all preference and analytics code that aided attachment previews

NOTE: This does not alter, in any way, the display of attachments in
conversation view.

Change-Id: Iccefd2fcf146ccdad927e7911900f370baaf8a1d
2014-07-10 16:56:11 -07:00
Régis Décamps
c3404cca71 Better documentation for "Account display name".
Give examples of what the display name is.

Change-Id: I2934dc9e8b95d0b32b9c1e9fab391d7ba9e997da
2014-07-10 19:54:02 +02:00
Tony Mantler
f90dbc83e2 Strings aren't Integers
b/16189015

Change-Id: Ife4383b5530956fcca7f7970691e9fdec32007ec
2014-07-09 16:02:01 -07:00
Tony Mantler
4fb5412e1b Switch to material icons for Email
b/15966080

Change-Id: I5d6097e37cb47356fc70a38e1aa2ae0c41e9ae7a
2014-07-08 15:55:40 -07:00
Tony Mantler
6c15188a9e Merge "Close body input streams" into ub-mail-master 2014-07-07 17:47:39 +00:00
Tony Mantler
a3d4117117 Close body input streams
b/16153171

Change-Id: Iab1224957d1079969be51d2843df5250c8660b8a
2014-07-08 09:39:50 -07:00
Martin Hibdon
1d8fd9c054 Add communication class for HostAuth
We want a separate class for communicating HostAuth objects
to and from IEmailService. The issue is that the HostAuth object
was being used for both to and from the database, and to and from
IEmailService. This is dangerous because The Email app may change
out of band with the Exchange app, and may need to change the
format of HostAuth. This bit us before when adding OAuth.
Now communication to IEmailService is done using HostAuthCompat.

Change-Id: I2fb8c2bd8158f58a7bb9bc3dc83a7936948c718c
2014-07-07 15:08:52 -07:00
Baligh Uddin
c11f7b9027 am f6425011: (-s ours) am 7611e3f7: (-s ours) Import translations. DO NOT MERGE
* commit 'f642501133b1ecc7f38e21b12157fad3f7498c8c':
  Import translations. DO NOT MERGE
2014-07-06 21:50:17 +00:00
Baligh Uddin
fb620b36b1 am 4f1a919b: (-s ours) Import translations. DO NOT MERGE
* commit '4f1a919b719cdcc1cb664ddfd2d404c366283014':
  Import translations. DO NOT MERGE
2014-07-06 21:47:07 +00:00
Baligh Uddin
0a74d7f0cc am 6012ef62: (-s ours) Import translations. DO NOT MERGE
* commit '6012ef625f045a74853d6b347bf9664d81646294':
  Import translations. DO NOT MERGE
2014-07-06 21:46:46 +00:00
Baligh Uddin
f642501133 am 7611e3f7: (-s ours) Import translations. DO NOT MERGE
* commit '7611e3f7d42c2259cd08180a58eb99f7fb259069':
  Import translations. DO NOT MERGE
2014-07-06 21:46:41 +00:00
Baligh Uddin
acdf3d73df am f7e522a9: (-s ours) Import translations. DO NOT MERGE
* commit 'f7e522a9c45862d78235c6e37f40f23fe509cce8':
  Import translations. DO NOT MERGE
2014-07-06 21:46:22 +00:00
Baligh Uddin
92a5b634ab Import translations. DO NOT MERGE
Change-Id: I100693f4f816c7cc078d6cbbd8c01a2c074b2380
Auto-generated-cl: translation import
2014-07-06 11:17:13 -07:00
Baligh Uddin
6012ef625f Import translations. DO NOT MERGE
Change-Id: Ief526b490061041c7169bb21455b53a4ff1980de
Auto-generated-cl: translation import
2014-07-06 11:11:08 -07:00
Baligh Uddin
4f1a919b71 Import translations. DO NOT MERGE
Change-Id: If287cbf4fada41b357a7be08d6aafd481b9214f8
Auto-generated-cl: translation import
2014-07-06 11:09:22 -07:00
Baligh Uddin
7611e3f7d4 Import translations. DO NOT MERGE
Change-Id: I3a6236310bff9f1f82d84e12322f5816a1a40b69
Auto-generated-cl: translation import
2014-07-06 11:07:47 -07:00
Baligh Uddin
f7e522a9c4 Import translations. DO NOT MERGE
Change-Id: I23672a3e3ee1657c6b96fd492bdc16800e2900da
Auto-generated-cl: translation import
2014-07-06 10:53:05 -07:00
Andrew Sapperstein
c07a442403 quantum change labels b/16054906
Change-Id: I0b8a639ccb76f2945e3839b10d59cf646d168e57
2014-07-03 18:28:01 -07:00
Martin Hibdon
2d90fbd2e8 Merge "Update version" into ub-mail-master 2014-07-02 20:11:01 +00:00
Martin Hibdon
b6795c55f9 Update version
Change-Id: I1d39d6e2f3edbc9af63bc1ced1ac1c48210e8f3f
2014-07-02 14:42:14 -07:00
Andrew Sapperstein
9fc5b8d80d Fix build.
Change-Id: I3c84b1ccb2171672857f523ed636de456fa7313a
2014-07-01 16:45:31 -07:00
Tony Mantler
035f5fd71c Delete obsolete emailsync code
b/5784532

Change-Id: I33a693e91b99253c4f82758c875c8cf21bace543
2014-06-30 13:13:00 -07:00
Tony Mantler
e292027fa7 Pre-cache attachment content URIs
Saves us a DB read on the UI thread.

b/15939030

Change-Id: I1b8174880ccc9dc06df6b57df2bd8d44a2fe05d4
2014-06-30 10:24:12 -07:00
Tony Mantler
3c5af60cc2 Merge "Override archive/delete behavior" into ub-mail-master 2014-06-27 16:52:20 +00:00
Andrew Sapperstein
99e836097b Fix build.
Change-Id: Ie51274cb9eaf154dfc41c86b40845028b0993610
2014-06-29 19:42:29 -07:00
Tony Mantler
04a621aa2c Override archive/delete behavior
b/15935182

Change-Id: I36210535dacc796a1dbaaabd5e16434e88e556db
2014-06-27 14:20:58 -07:00
Tony Mantler
bed71e61c7 Add override for Email general prefs header
Diverts to a fragment that excludes archive-based actions

b/15935182

Change-Id: Ic17195d15fedafc6f5fd9b95da1c08f1b563c27c
2014-06-27 13:52:42 -07:00
Tony Mantler
88580cd5e0 Merge "Unify settings activity" into ub-mail-master 2014-06-27 15:56:14 +00:00
Tony Mantler
06415a635f Unify settings activity
b/9566150

- Install PublicPreferenceActivity
- Create AccountServerSettingsActivity to contain all the crazy
    logic we don't want in AccountSettings
- Add restoreAccountWithAddress to Account
- Refactor almost everything out of AccountSettings
- Tidy the QuickResponse fragment
- Majorly refactor the AccountSettingsFragment to decouple it from
    the activity, and make it save settings immediately instead of
    when pausing
- Move login warning dialog to AccountSettingsFragment
- Tweak HeadlessAccountSettingsLoader

Change-Id: Ie69181d968b9c3e5940cfef9690b1f5c70e21aa8
2014-06-27 10:49:18 -07:00
Tony Mantler
9a311806ca Merge "Change SENDING_UNAVAILABLE to VIRTUAL_ACCOUNT" into ub-mail-master 2014-06-26 17:57:04 +00:00
Tony Mantler
c2b1056a61 Change SENDING_UNAVAILABLE to VIRTUAL_ACCOUNT
b/9566150

Change-Id: Ic8c009d2440eb2f4b2cd6343b50118b81d636fb6
2014-06-26 14:21:26 -07:00
Régis Décamps
5026028300 Refactor how the warm welcome is triggered.
MailActivityEmail doesn't need to implement WelcomeTourCompletionListener anymore.

b/15705426

Change-Id: I911eb8eac6e6759448065e68e85d6f347693ea82
2014-06-26 10:19:53 +02:00
Anthony Lee
3d16e5d4b9 Move over to the new AttachmentService.
Change-Id: I4a687b003884ea6a92a755fcbf394001bfc96a38
2014-06-25 09:56:29 -07:00
Anthony Lee
ff52eef8e6 Revamp logging & remove the threading around downloads.
There is no need to launch a new AsyncTask around adding an
attachment to the queue of downloads. We can restore the attachment
in the worker thread of AttachmentService instead. Also reworked
the logging so we can trace the flow of the AttachmentService if
we need to debug again in the future.

Change-Id: I368ebb4322bc0af0f4cadedf102959d621e5ee80
2014-06-24 15:24:47 -07:00
Jay Shrauner
5bcb36eb10 Fix NPE from null Folder
Catch empty folder cursor in migrate() and log error message and
continue as with other empty cursor handling in loop.

Bug:15854046
Change-Id: I13c0a1909755f62f318d7c2b237adb03df68ba86
2014-06-24 10:40:47 -07:00
Tony Mantler
5f24f6f2e5 Merge "Return settings fragment class for account" into ub-mail-master 2014-06-23 21:44:43 +00:00
Jay Shrauner
5417166477 Merge "Fix NPE in onBasicsComplete" into ub-mail-master 2014-06-23 21:44:43 +00:00
Jay Shrauner
73a561fbbd Fix NPE in onBasicsComplete
Check for null mExistingAccountsMap as is done in finishAutoSetup().

Bug:15835752
Change-Id: I9e01d36990e107dc2c89f345c5e6f4565f071913
2014-06-23 15:10:11 -07:00
Jay Shrauner
9adf186c5b Catch negative literal sizes in imap responses
Check for negative sizes for literals so that we don't crash attempting
to create a negative sized array.

Bug:15834346
Change-Id: I1fbd9b86c807f1e97100fbfe52ef402a337bf655
2014-06-23 14:55:30 -07:00
Tony Mantler
2eecdd1a50 Don't leak cursors
b/15830514

Change-Id: I91f452fc7c14a076d7f9078ec066215b28ddc3c3
2014-06-23 13:38:22 -07:00
Tony Mantler
876c8e1408 Return settings fragment class for account
b/9566150

Change-Id: Ia88f09d651284ff8f25a1784dc9a93ee30e6ea52
2014-06-20 14:32:15 -07:00
Paul Westbrook
c24d5d4f19 Merge "Enable supression of combined account" into ub-mail-master 2014-06-20 02:15:46 +00:00
Paul Westbrook
4038f464de Enable supression of combined account
This enables the client of the provider to suppress the email combined
account.  Later, the UI can enable a combined account that spans all of
the account types

Change-Id: I77e201f751019240af2274a1f74e2124b9889aab
2014-06-20 00:09:07 -07:00
Tony Mantler
7b9f7ff76f Make AccountSettings subclass MailPreferenceActivity
b/9566150

Change-Id: I62e0115f11761f9019a1f1ecf96de82bbbb80c3a
2014-06-19 16:01:11 -07:00
Martin Hibdon
b63b39d03e am 9c0463e6: Don\'t offer oauth unless we have at least one provider
* commit '9c0463e6b485b3b50d9c6f110a9ece650cd4a692':
  Don't offer oauth unless we have at least one provider
2014-06-19 21:46:59 +00:00