Commit Graph

10139 Commits

Author SHA1 Message Date
Tony Mantler
f1789afa53 Switch null checks to TextUtils.isEmpty()
b/16872654

Change-Id: Ib8943f068ad6988ff08f8bfd54e2df8fa5ce0274
2014-08-07 14:11:02 -07:00
Anthony Lee
8218d00634 Merge "Make sure that we close the cursor." into ub-gmail-ur14-dev 2014-08-07 15:00:45 +00:00
Anthony Lee
4524dccde8 Make sure that we close the cursor.
Found this problem while testing Email migration.

Change-Id: I07862b5c4dd2ef189a87f7dbd085030c448f365f
2014-08-07 13:13:21 -07:00
Tony Mantler
1381d4083b Skip null/empty account types
b/16730607

Change-Id: I6b3207edbf3dc841dd2222e92f69d270a0caf773
2014-08-07 12:58:18 -07:00
Régis Décamps
34aae3cbc4 Merge "Fix getAllAmAccounts() returning duplicated accounts" into ub-gmail-ur14-dev 2014-08-05 00:19:02 +00:00
Régis Décamps
f9d845c1b7 Fix getAllAmAccounts() returning duplicated accounts
Use a set to save the account types, in order to de-duplicate identical
types.

Also, remove unused imports.

Bug: 16811863 Duplicate POP accounts are listed
Change-Id: If699d03b2c12959cfde9926bec9352b71c3d8912
2014-08-06 20:27:39 +02:00
Paul Westbrook
e76b7bbf78 Fix proguard rule
-keepclasseswithmembers is strict.  If it isn't able to find any of the
methods listed, the whole class can be stripped

Bug: 16825652
Change-Id: I1e8eefba9e0cf4b596f7e8041161e12bde6b51c6
2014-08-06 00:41:47 -07:00
Paul Westbrook
4764cb8d48 Fix unit test
Bug: 16825652
Change-Id: I1c139afb0f3aa50dca742ed48c92a16f9078ea59
2014-08-05 18:24:51 -07:00
Andrew Sapperstein
36fd389381 Use ShortcutWidgetTheme.
Fixes b/16767953 and b/16131423.

Also removes the obsolete ic_launcher_shortcut_folder.

Change-Id: I73e800b1e83b95eaa05cd800178a7de86072c00d
2014-08-04 20:05:17 +00:00
Andrew Sapperstein
05a96bdccd switch to appcompat. b/16664350
Change-Id: I3391bc352d6b9bc2d59ca6ac0088e88b1edcc76d
2014-08-04 11:18:58 -07:00
Jin Cao
65848dc5e0 Merge "Support the new MOVE_FAILED_TO_DRAFT operation in Email" into ub-gmail-ur14-dev 2014-08-01 08:29:25 +00:00
Paul Westbrook
0ef2851aeb Add proguard rules for small unit test
These methods were being stripped, but are needed by the unit tes

Change-Id: I15495c2cb4c83d6f1a00bac20da715352eb58275
2014-08-01 17:33:49 -07:00
Jin Cao
99e882e22d Support the new MOVE_FAILED_TO_DRAFT operation in Email
Default the MOVE_FAILED_TO_DRAFT action to simply deleting
the failed message from Outbox for Email since this is the
current behavior.

b/4080109

Change-Id: I74917d0b2581e2dd145906dddfac395efc2d8206
2014-08-01 17:15:44 -07:00
Paul Westbrook
d37ca267dd Clean up proguard test flags file
Change-Id: I2db858b59e0b1c6ff199aa7b11b99ee6e019ea72
2014-08-01 16:44:56 -07:00
Paul Westbrook
bc65885e24 Merge "Use test proguard config for eng builds" into ub-gmail-ur14-dev 2014-08-01 08:29:25 +00:00
Andrew Sapperstein
0a17fcfae5 temp fix for b/16730607
Change-Id: I1474955d82442ad10527e2a308fa19bec7b144e9
2014-08-01 11:41:50 -07:00
Paul Westbrook
2fb24a2e4a Use test proguard config for eng builds
Since unit tests only run on eng builds, modify the proguard config to
only keep the methods/classes needed for unit tests in eng builds

The test proguard config probably is keeping too many methods.  We should
also evaluate whether it is valid for unit test to use methods that are not
used in user builds

The resulting apk size is 8714188 bytes, from 9866129

According to the proguard output, the final number of program classes is
4409, from the previous count of 10932

Change-Id: Ie7065a454e1ff80a4b3f953684940d88b17f6db7
2014-08-01 11:08:18 -07:00
Anthony Lee
347c5117e4 Update version for L
Change-Id: Ibbf09dfffe3d2b01cda364ef1d884270360e0a29
(cherry picked from commit 73eacd6ead)
2014-07-31 21:44:57 +00:00
Tony Mantler
751da26172 Add Exchange fallback and support diverting to Gmail
b/16679701

Change-Id: I59d7cb4a803f0ad8e782614d0c6cc635318d2375
(cherry picked from commit d039322f74)
2014-07-31 21:44:26 +00:00
Tony Mantler
16176e5bb7 Imap folders are case sensitive
For real this time

b/16686642

Change-Id: Ib484c2ac3505ff35bc643bbc51597f1ceb4e7f7e
(cherry picked from commit 60e5abbc56)
2014-07-31 21:43:22 +00:00
Tony Mantler
e495f17a4f Merge "Add support for disabling OAuth on setup flow only" into ub-mail-master 2014-07-25 21:16:23 +00:00
Jay Shrauner
11f15608d6 Disable backup
Disable all backup

Bug:16676574
Change-Id: I20bd8dc4466a4534990576d272942ca611caf883
2014-07-30 10:05:55 -07:00
Tony Mantler
e96791403e Add support for disabling OAuth on setup flow only
b/16633826

Change-Id: Iea984ae656fbf3fe44de7598fdb9357a18d52a74
2014-07-30 09:55:16 -07:00
Geoff Mendal
7063124d1d Import translations. DO NOT MERGE
Change-Id: I71c2cbaec779d2aa773ba61ece2a303de448e9f8
Auto-generated-cl: translation import
2014-07-30 09:09:33 -07:00
Tony Mantler
751a029c31 Convert server settings to dialog
b/8134410

Change-Id: I3c4c9a02a37571a9c7af10971840fbe39458244e
2014-07-29 15:12:04 -07:00
Tony Mantler
6e976f1d05 Update Email with Material icon
b/16632858

Change-Id: I611075c836fa8eeb24450aacfbef780af7bedcd2
2014-07-28 15:04:23 -07:00
Anthony Lee
ebe49cfeaf b/16570506. Only enable alternate EAS authenticator when needed.
The old code was turning on both the EAS authenticator and the
alternate EAS authenticator (with the offending string). Now it
turns on the right one depending on the VendorPolicyLoader.

Change-Id: I69945e695f28fdb8bd33bf49ee253a354c05b30c
2014-07-28 14:37:02 -07:00
Martin Hibdon
aaa26e8c3f Merge "Disable Eas Authenticator if Exchange is not installed" into ub-mail-master 2014-07-24 22:43:15 +00:00
Martin Hibdon
74dc106ae9 Disable Eas Authenticator if Exchange is not installed
b/16541219

Change-Id: Ibc2a9608278762e6af4f7c429b08ad38935bfcae
2014-07-24 15:46:15 -07:00
Martin Hibdon
29180e6b36 Merge "Update version" into ub-mail-master 2014-07-24 15:37:54 +00:00
Martin Hibdon
266a7572a9 Update version
Change-Id: Ie69a887b0b6cff95cb5f0400788e057e59b312c7
2014-07-24 15:31:39 -07:00
Anthony Lee
20110e6288 Factor out the guts of setupAccountManagerAccount()
The new function will be called by the old function but it also allows
me to use it from the Migration code.

Change-Id: If9b2ad82479d60c63e8924d42fb6ce18d7d9a2f8
2014-07-24 13:28:26 -07:00
Andrew Sapperstein
a0389a26b8 Remove unused string.
Change-Id: I62a1ab0db1e8dbc80b49cbd16b35f1f1f47b6a6d
2014-07-23 17:27:48 -07:00
Martin Hibdon
ae028b6c70 Add lower res versions of ic_setup_delete.png
b/16457587

Change-Id: I4bcb0c9498b680f117923802e68a0d6dc449a7e5
2014-07-21 13:39:25 -07:00
Tony Mantler
14a64cef86 IMAP mailboxes are case-sensitive
b/15694346

Change-Id: I4a59979f40d6118bb9c7e27069ea228ba783a4c3
2014-07-21 10:24:32 -07:00
Tony Mantler
cd118b3b61 Add support for launching setup flow via intent action
b/16371282

Change-Id: I9ee45d769a6f73fe1e44b7ca7607f8f0b54a703d
2014-07-18 15:35:35 -07:00
Baligh Uddin
a64f39d5a2 Merge "Import translations. DO NOT MERGE" into ub-mail-master 2014-07-18 22:16:50 +00:00
Ray Chen
045aa05777 Add ACCOUNT_ID to ACCOUNT_COLUMNS and populate it with Email from
EmailProvider.

b/16400882

Change-Id: I2765fa6cea392e07b878fe063c7234582a485b1d
2014-07-22 11:31:37 +02:00
Baligh Uddin
28dacfbbf4 Import translations. DO NOT MERGE
Change-Id: I05c450ccc246284ebd339788a4856f9fa8b12511
Auto-generated-cl: translation import
2014-07-21 08:40:46 -07:00
Paul Westbrook
0b060097ed Merge "Use the prebuilt support library resources" into ub-mail-master 2014-07-16 01:00:53 +00:00
Paul Westbrook
f1212d4181 Use the prebuilt support library resources
Change-Id: I70853b5a73aa98e806adffdfceeb365f3949daa0
2014-07-16 11:46:01 +02:00
Ray Chen
7e75afadb1 com.android.mail.providers.Account contructors are no longer public
and clients need to use Account.builder().buildFrom(...) instead.

Change-Id: I7559540458ae549c399effc59392930ec914ffcc
2014-07-16 10:06:23 +02:00
Tony Mantler
845001d250 Merge "Add "Add Account" to prefs headers" into ub-mail-master 2014-07-15 16:04:58 +00:00
James Lemieux
2a70971689 Merge "Marking conversations read/unread in the TL removes the snippet text" into ub-mail-master 2014-07-15 16:06:25 +00:00
James Lemieux
b4a9c1e302 Marking conversations read/unread in the TL removes the snippet text
b/16322573

EmailConversationCursor was not populating the firstUnreadSnippet and
lastSnippet values in ConversationInfo. When they remain null and are
subsequently set as the snippet text, it effectively removes the snippet.

Change-Id: I1c17508bbc8857d00d8678dca4a7ad791dcae049
2014-07-15 12:39:21 -07:00
Tony Mantler
9ccae204cf Merge "Make quick response UI in settings toggleable" into ub-mail-master 2014-07-15 16:04:58 +00:00
Tony Mantler
e9e2a21d87 Make quick response UI in settings toggleable
b/16302932

Change-Id: I24b289ffbecd4f127e6109b56c0af7f9c4b00879
2014-07-15 10:31:18 -07:00
Tony Mantler
46c95eb6c9 Add new account intent is no longer forwarding
It now launches directly instead of bouncing through settings

b/16309940

Change-Id: I23ab9902f3b02e466626e08b842a5228193a7909
2014-07-15 09:56:55 -07:00
Tony Mantler
1dcdc09e03 Add "Add Account" to prefs headers
Borrowed + icon from authentication widget

b/16298155

Change-Id: I36d0eb2c7b9e98442d72481254d9a4da2ae3c999
2014-07-14 14:33:32 -07:00
Martin Hibdon
1fa51773bf Merge "Add copyright notice" into ub-mail-master 2014-07-14 18:38:08 +00:00